| Package | Description |
|---|---|
| org.aopalliance.instrument |
This package provides an API for program instrumentation.
|
| org.aopalliance.reflect |
This package provides a set of interfaces for implementing a
generic reflection API.
|
| Modifier and Type | Method and Description |
|---|---|
Instrumentation |
Instrumentor.addAfterCode(CodeLocator location,
Code afterCode,
Instrumentation before,
Instrumentation after)
Adds some code after a given method code body.
|
Instrumentation |
Instrumentor.addAroundCode(CodeLocator location,
Code aroundCode,
String proceedMethodName,
Instrumentation before,
Instrumentation after)
Adds some code around a given method code body.
|
Instrumentation |
Instrumentor.addBeforeCode(CodeLocator location,
Code beforeCode,
Instrumentation before,
Instrumentation after)
Adds some code before a given method code body.
|
| Modifier and Type | Method and Description |
|---|---|
CodeLocator |
Method.getCallLocator()
This locator contains all the points in the program that call
this method.
|
CodeLocator |
Method.getCallLocator(int side)
A full version of
Method.getCallLocator(). |
CodeLocator |
Code.getCallLocator(Method calleeMethod)
Returns a call locator for the given callee method.
|
CodeLocator |
Code.getCatchLocator(Class exceptionType)
Returns a exception catching locator in the current body.
|
CodeLocator |
Code.getLocator()
Returns the code locator that corresponds to this code.
|
CodeLocator |
Field.getReadLocator()
Same as
getReadLocator(USER_SIDE). |
CodeLocator |
Code.getReadLocator(Field readField)
Returns a field reading locator in the current body.
|
CodeLocator |
Field.getReadLocator(int side)
This methods returns the points where the current field is read.
|
CodeLocator |
Code.getThrowLocator(Class exceptionType)
Returns a exception throwing locator in the current body.
|
CodeLocator |
Field.getWriteLocator()
Same as
getWriteLocator(USER_SIDE). |
CodeLocator |
Code.getWriteLocator(Field writtenField)
Returns a field writing locator in the current body.
|
CodeLocator |
Field.getWriteLocator(int side)
This methods returns the points where the current field is
written.
|
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.