| 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 |
|---|---|
ClassLocator |
Instrumentor.createClass(String name)
Creates a new class.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Instrumentation |
Instrumentor.setSuperClass(ClassLocator location,
String newSuperClassName)
Sets or replaces the current superclass of a class location.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLocator |
Class.getClassLocator()
Returns the class locator that corresponds to this class.
|
Copyright © 2009–2020 Oracle Corporation. All rights reserved.