public interface Instrumentation
This interface represents an instrumentation on the base program.
The program instrumentor implementation should return an intrumentation instance for each intrumentation which is performed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAfter code adding instrumentation type.static final intBefore code instrumentation type.static final intClass adding instrumentation type.static final intInterface adding instrumentation type.static final intMetadata adding instrumentation type.static final intSuperclass setting instrumentation type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the location of this instrumentation.intgetType()Gets the instrumentation type.
-
Field Details
-
ADD_INTERFACE
static final int ADD_INTERFACEInterface adding instrumentation type.- See Also:
-
SET_SUPERCLASS
static final int SET_SUPERCLASSSuperclass setting instrumentation type.- See Also:
-
ADD_CLASS
static final int ADD_CLASSClass adding instrumentation type.- See Also:
-
ADD_BEFORE_CODE
static final int ADD_BEFORE_CODEBefore code instrumentation type.- See Also:
-
ADD_AFTER_CODE
static final int ADD_AFTER_CODEAfter code adding instrumentation type.- See Also:
-
ADD_METADATA
static final int ADD_METADATAMetadata adding instrumentation type.- See Also:
-
-
Method Details
-
getLocation
Locator getLocation()Returns the location of this instrumentation. -
getType
int getType()Gets the instrumentation type.- Returns:
- ADD_INTERFACE | SET_SUPERCLASS | ADD_CLASS | ADD_AFTER_CODE | ADD_BEFORE_CODE | ADD_AROUND_CODE | ADD_METADATA
-