| Package | Description |
|---|---|
| org.aopalliance.instrument |
This package provides an API for program instrumentation.
|
| 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.addClass(ClassLocator location,
String className)
Introduces a class into the class location (mixin).
|
Instrumentation |
Instrumentor.addField(ClassLocator location,
String name,
String typeName,
Code initializator)
Adds a new field to the target class.
|
Instrumentation |
Instrumentor.addInterface(ClassLocator location,
String newInterfaceName)
Adds a new implemented interface to a given class location.
|
Instrumentation |
Instrumentor.addMethod(ClassLocator location,
String name,
String[] parameterTypeNames,
String[] parameterNames,
Code body)
Adds a new method to the class location.
|
ClassLocator |
Instrumentor.createClass(String name)
Creates a new class.
|
Instrumentation |
Instrumentor.setSuperClass(ClassLocator location,
String newSuperClassName)
Sets or replaces the current superclass of a class location.
|
Copyright © 2009-2014 Oracle Corporation. All Rights Reserved.