public interface MethodAccessorFactory
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | MethodAccessorFactory.AccessTypeIndicates the type of access to an accessor method. | 
| static class  | MethodAccessorFactory.IllegalA method accessor factory that forbids any accessor registration. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription.InDefinedShape | registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation,
                   MethodAccessorFactory.AccessType accessType)Registers an accessor method for a
  Implementation.SpecialMethodInvocationwhich cannot itself be
 triggered invoked directly from outside a type. | 
| MethodDescription.InDefinedShape | registerGetterFor(FieldDescription fieldDescription,
                 MethodAccessorFactory.AccessType accessType)Registers a getter for the given  FieldDescriptionwhich might
 itself not be accessible from outside the class. | 
| MethodDescription.InDefinedShape | registerSetterFor(FieldDescription fieldDescription,
                 MethodAccessorFactory.AccessType accessType)Registers a setter for the given  FieldDescriptionwhich might
 itself not be accessible from outside the class. | 
MethodDescription.InDefinedShape registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation, MethodAccessorFactory.AccessType accessType)
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.accessType - The required access type.MethodDescription.InDefinedShape registerGetterFor(FieldDescription fieldDescription, MethodAccessorFactory.AccessType accessType)
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.accessType - The required access type.MethodDescription.InDefinedShape registerSetterFor(FieldDescription fieldDescription, MethodAccessorFactory.AccessType accessType)
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.accessType - The required access type.Copyright © 2014–1970. All rights reserved.