Enum InvocationType
- java.lang.Object
-
- java.lang.Enum<InvocationType>
-
- com.jprofiler.api.probe.injected.interception.InvocationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InvocationType>
public enum InvocationType extends java.lang.Enum<InvocationType>
Specifies the point at which the probe method is invoked.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTERThe probe method will be called before any code of the intercepted method is called.EXCEPTIONThe probe method will be called when the intercepted method throws an exception.EXITThe probe method will be called when the intercepted method exits, either by returning normally or by throwing an exception.RETURNThe probe method will be called when the intercepted method returns normally.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvocationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InvocationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTER
public static final InvocationType ENTER
The probe method will be called before any code of the intercepted method is called. You cannot useReturnValueorExceptionValueparameters for methods of this type.
-
EXIT
public static final InvocationType EXIT
The probe method will be called when the intercepted method exits, either by returning normally or by throwing an exception. You can use bothReturnValueandExceptionValueparameters for methods of this type. If the intercepted method returns normally, theExceptionValueparameter will benull. If the method throws an exception, theReturnValueparameter will benull.This type cannot be used for constructors.
-
RETURN
public static final InvocationType RETURN
The probe method will be called when the intercepted method returns normally. You can use aReturnValueparameter, but noExceptionValueparameter for methods of this type.
-
EXCEPTION
public static final InvocationType EXCEPTION
The probe method will be called when the intercepted method throws an exception. You can use anExceptionValueparameter, but noReturnValueparameter for methods of this type.This type cannot be used for constructors.
-
-
Method Detail
-
values
public static InvocationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InvocationType c : InvocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvocationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-