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 | Method and Description |
---|---|
MethodDescription.InDefinedShape |
registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
registerGetterFor(FieldDescription fieldDescription)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
registerSetterFor(FieldDescription fieldDescription)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape 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.InDefinedShape 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.InDefinedShape 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–2016. All rights reserved.