Enum InstrumentationTarget
- java.lang.Object
-
- java.lang.Enum<InstrumentationTarget>
-
- com.tonic.analysis.instrumentation.InstrumentationTarget
-
- All Implemented Interfaces:
Serializable,Comparable<InstrumentationTarget>
public enum InstrumentationTarget extends Enum<InstrumentationTarget>
Enumeration of instrumentation target types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_LOADAfter AALOAD/IALOAD/etc.ARRAY_STOREBefore AASTORE/IASTORE/etc.EXCEPTION_HANDLERIn exception handlersFIELD_READAfter GETFIELD/GETSTATICFIELD_WRITEBefore PUTFIELD/PUTSTATICMETHOD_CALL_AFTERAfter method invocationMETHOD_CALL_BEFOREBefore method invocationMETHOD_ENTRYBefore the first instruction of a methodMETHOD_EXITBefore each return instruction
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstrumentationTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static InstrumentationTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METHOD_ENTRY
public static final InstrumentationTarget METHOD_ENTRY
Before the first instruction of a method
-
METHOD_EXIT
public static final InstrumentationTarget METHOD_EXIT
Before each return instruction
-
FIELD_WRITE
public static final InstrumentationTarget FIELD_WRITE
Before PUTFIELD/PUTSTATIC
-
FIELD_READ
public static final InstrumentationTarget FIELD_READ
After GETFIELD/GETSTATIC
-
ARRAY_STORE
public static final InstrumentationTarget ARRAY_STORE
Before AASTORE/IASTORE/etc.
-
ARRAY_LOAD
public static final InstrumentationTarget ARRAY_LOAD
After AALOAD/IALOAD/etc.
-
METHOD_CALL_BEFORE
public static final InstrumentationTarget METHOD_CALL_BEFORE
Before method invocation
-
METHOD_CALL_AFTER
public static final InstrumentationTarget METHOD_CALL_AFTER
After method invocation
-
EXCEPTION_HANDLER
public static final InstrumentationTarget EXCEPTION_HANDLER
In exception handlers
-
-
Method Detail
-
values
public static InstrumentationTarget[] 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 (InstrumentationTarget c : InstrumentationTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstrumentationTarget valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-