public static interface AuxiliaryType.MethodAccessorFactory
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuxiliaryType.MethodAccessorFactory.Illegal
A method accessor factory that forbids any accessor registration.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESSOR_METHOD_MODIFIER
The modifier for accessor methods.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription |
registerGetterFor(FieldDescription fieldDescription)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription |
registerSetterFor(FieldDescription fieldDescription)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
static final int ACCESSOR_METHOD_MODIFIER
static.MethodDescription registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation)
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. The method is registered on the instrumented type
with package-private visibility, similarly to a Java compiler's accessor methods.specialMethodInvocation - The special method invocation.MethodDescription registerGetterFor(FieldDescription fieldDescription)
FieldDescription which might
itself not be accessible from outside the class. The returned getter method defines the field type as
its return type, does not take any arguments and is of package-private visibility, similarly to the Java
compiler's accessor methods. If the field is static, this accessor method is also static.fieldDescription - The field which is to be accessed.MethodDescription registerSetterFor(FieldDescription fieldDescription)
FieldDescription which might
itself not be accessible from outside the class. The returned setter method defines the field type as
its only argument type, returns void and is of package-private visibility, similarly to the Java
compiler's accessor methods. If the field is static, this accessor method is also static.fieldDescription - The field which is to be accessed.Copyright © 2014–2015. All rights reserved.