protected static class Field.Binder.FieldLocator.Legal extends Field.Binder.FieldLocator
Field.Binder.FieldLocator.Illegal, Field.Binder.FieldLocator.Legal, Field.Binder.FieldLocator.LookupEngine, Field.Binder.FieldLocator.Resolution
Modifier | Constructor and Description |
---|---|
protected |
Legal(String fieldName)
Creates a new field locator for a legal field name.
|
Modifier and Type | Method and Description |
---|---|
protected static Field.Binder.FieldLocator |
consider(MethodDescription methodDescription)
Considers a given method to expose a field name by following the Java bean naming conventions
for getter and setter methods.
|
boolean |
equals(Object other) |
int |
hashCode() |
protected Field.Binder.FieldLocator.LookupEngine |
lookup(TypeDescription typeDescription,
TypeDescription instrumentedType)
Locates a field of a given name on a specific type.
|
String |
toString() |
of
protected Legal(String fieldName)
fieldName
- The name of the field.protected static Field.Binder.FieldLocator consider(MethodDescription methodDescription)
methodDescription
- The method to consider for such a field name identification.protected Field.Binder.FieldLocator.LookupEngine lookup(TypeDescription typeDescription, TypeDescription instrumentedType)
Field.Binder.FieldLocator
lookup
in class Field.Binder.FieldLocator
typeDescription
- The type which defines the field or a representation of void
for
looking up a type implicitly within the type hierarchy.instrumentedType
- The instrumented type from which a field is to be accessed.Copyright © 2014–2015. All rights reserved.