| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | handleFieldReference(ModifiableFieldReference ref)
Called when a reference to a field is encountered while visiting the body of the method for which handleMethod was most recently called. |
| public void | handleMethod(ModifiableMethod method)
Invoked after handleClass for each method defined in the class passed into the GenericClass constructor called with the classdata. |
| public String |
| handleClass | back to summary |
|---|---|
| public void handleClass(ModifiableClass cls) Invoked when the GenericClass constructor is called with classdata. All Wrapper methods that are available between _class() and _end() may be used to add to cls. This includes adding new methods, fields, constructors, and extending the class initializer. Any changes made to the ModifiableClass argument are included in the resulting GenericClass instance. | |
| handleFieldReference | back to summary |
|---|---|
| public void handleFieldReference(ModifiableFieldReference ref) Called when a reference to a field is encountered while visiting the body of the method for which handleMethod was most recently called. | |
| handleMethod | back to summary |
|---|---|
| public void handleMethod(ModifiableMethod method) Invoked after handleClass for each method defined in the class passed into the GenericClass constructor called with the classdata. The ModifiableMethod API may be used to change the method, including adding code before and/or after the existing method body using the usual Wrapper calls for use in a method body. | |
| name | back to summary |
|---|---|
| public String name() Return the name of the interceptor. | |