org.aopalliance.instrument

Interface Instrumentation

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:
Instrumentor

Field Summary

static int
ADD_AFTER_CODE
After code adding instrumentation type.
static int
ADD_BEFORE_CODE
Before code instrumentation type.
static int
ADD_CLASS
Class adding instrumentation type.
static int
ADD_INTERFACE
Interface adding instrumentation type.
static int
ADD_METADATA
Metadata adding instrumentation type.
static int
SET_SUPERCLASS
Superclass setting instrumentation type.

Method Summary

Locator
getLocation()
Returns the location of this instrumentation.
int
getType()
Gets the instrumentation type.

Field Details

ADD_AFTER_CODE

public static final int ADD_AFTER_CODE
After code adding instrumentation type.
Field Value:
4

ADD_BEFORE_CODE

public static final int ADD_BEFORE_CODE
Before code instrumentation type.
Field Value:
3

ADD_CLASS

public static final int ADD_CLASS
Class adding instrumentation type.
Field Value:
2

ADD_INTERFACE

public static final int ADD_INTERFACE
Interface adding instrumentation type.
Field Value:
0

ADD_METADATA

public static final int ADD_METADATA
Metadata adding instrumentation type.
Field Value:
5

SET_SUPERCLASS

public static final int SET_SUPERCLASS
Superclass setting instrumentation type.
Field Value:
1

Method Details

getLocation

public Locator getLocation()
Returns the location of this instrumentation.

getType

public int getType()
Gets the instrumentation type.
Returns:
ADD_INTERFACE | SET_SUPERCLASS | ADD_CLASS | ADD_AFTER_CODE | ADD_BEFORE_CODE | ADD_AROUND_CODE | ADD_METADATA