public static enum FieldAccessor.FieldNameExtractor.ForBeanProperty extends Enum<FieldAccessor.FieldNameExtractor.ForBeanProperty> implements FieldAccessor.FieldNameExtractor
FieldAccessor.FieldNameExtractor
that determines a field name
according to the rules of Java bean naming conventions.FieldAccessor.FieldNameExtractor.ForBeanProperty, FieldAccessor.FieldNameExtractor.ForFixedValue
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(MethodDescription methodDescription)
Extracts a field name to be accessed by a getter or setter method.
|
String |
toString() |
static FieldAccessor.FieldNameExtractor.ForBeanProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAccessor.FieldNameExtractor.ForBeanProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAccessor.FieldNameExtractor.ForBeanProperty INSTANCE
public static FieldAccessor.FieldNameExtractor.ForBeanProperty[] values()
for (FieldAccessor.FieldNameExtractor.ForBeanProperty c : FieldAccessor.FieldNameExtractor.ForBeanProperty.values()) System.out.println(c);
public static FieldAccessor.FieldNameExtractor.ForBeanProperty 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 nullpublic String resolve(MethodDescription methodDescription)
FieldAccessor.FieldNameExtractor
resolve
in interface FieldAccessor.FieldNameExtractor
methodDescription
- The method for which a field name is to be determined.public String toString()
toString
in class Enum<FieldAccessor.FieldNameExtractor.ForBeanProperty>
Copyright © 2014–2016. All rights reserved.