protected static class FieldValue.Binder.FieldLocator.ForSpecificType extends FieldValue.Binder.FieldLocator
FieldValue.Binder.FieldLocator.ForFieldInHierarchy, FieldValue.Binder.FieldLocator.ForSpecificType, FieldValue.Binder.FieldLocator.Impossible, FieldValue.Binder.FieldLocator.Resolution| Modifier | Constructor and Description |
|---|---|
protected |
ForSpecificType(TypeDescription typeDescription,
TypeDescription instrumentedType)
Creates a new field locator for looking up a field within a specific type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
protected static FieldValue.Binder.FieldLocator |
of(TypeDescription typeDescription,
TypeDescription instrumentedType)
Creates a field locator that locates a field within the given type only if that type is within the
instrumented type's type hierarchy.
|
protected FieldValue.Binder.FieldLocator.Resolution |
resolve(String fieldName,
boolean staticMethod)
Attempts to locate a type for a given field.
|
String |
toString() |
protected ForSpecificType(TypeDescription typeDescription, TypeDescription instrumentedType)
typeDescription - The type which is supposed to define the field.instrumentedType - The instrumented type which is accessing the field.protected static FieldValue.Binder.FieldLocator of(TypeDescription typeDescription, TypeDescription instrumentedType)
typeDescription - The given type to locate a field within.instrumentedType - The instrumented type.protected FieldValue.Binder.FieldLocator.Resolution resolve(String fieldName, boolean staticMethod)
FieldValue.Binder.FieldLocatorresolve in class FieldValue.Binder.FieldLocatorfieldName - The name of the field.staticMethod - true if the field is accessed from a static method.Copyright © 2014–2016. All rights reserved.