| 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.
|
Instrumentation |
Instrumentor.addField(ClassLocator location,
String name,
String typeName,
Code initializator)
Adds a new field to the target class.
|
Instrumentation |
Instrumentor.addMethod(ClassLocator location,
String name,
String[] parameterTypeNames,
String[] parameterNames,
Code body)
Adds a new method to the class location.
|
| Modifier and Type | Method and Description |
|---|---|
Code |
Method.getBody()
Returns the body of the current method.
|
Copyright © 2009-2013 Oracle Corporation. All Rights Reserved.