protected static enum FieldProxy.Binder.AccessType extends Enum<FieldProxy.Binder.AccessType>
Modifier and Type | Class and Description |
---|---|
protected static class |
FieldProxy.Binder.AccessType.Getter
Implementation for a getter method.
|
protected static class |
FieldProxy.Binder.AccessType.Setter
Implementation for a setter method.
|
Enum Constant and Description |
---|
GETTER
Represents getter access for a field.
|
SETTER
Represents setter access for a field.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Implementation |
access(FieldDescription fieldDescription,
Assigner assigner,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Returns an implementation that implements the sort of accessor implementation that is represented by
this instance.
|
protected abstract TypeDescription |
proxyType(MethodDescription getterMethod,
MethodDescription setterMethod)
Locates the type to be implemented by a field accessor proxy.
|
String |
toString() |
static FieldProxy.Binder.AccessType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldProxy.Binder.AccessType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldProxy.Binder.AccessType GETTER
public static final FieldProxy.Binder.AccessType SETTER
public static FieldProxy.Binder.AccessType[] values()
for (FieldProxy.Binder.AccessType c : FieldProxy.Binder.AccessType.values()) System.out.println(c);
public static FieldProxy.Binder.AccessType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract TypeDescription proxyType(MethodDescription getterMethod, MethodDescription setterMethod)
getterMethod
- The getter method to be implemented by a getter proxy.setterMethod
- The setter method to be implemented by a setter proxy.protected abstract Implementation access(FieldDescription fieldDescription, Assigner assigner, AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
fieldDescription
- The field to be accessed.assigner
- The assigner to use.methodAccessorFactory
- The accessed type's method accessor factory.public String toString()
toString
in class Enum<FieldProxy.Binder.AccessType>
Copyright © 2014–2016. All rights reserved.