protected abstract static class FieldValue.Binder.FieldLocator extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
FieldValue.Binder.FieldLocator.ForFieldInHierarchy
Attempts to locate a field within a type's hierarchy.
|
protected static class |
FieldValue.Binder.FieldLocator.ForSpecificType
Locates a field only within a given type.
|
protected static class |
FieldValue.Binder.FieldLocator.Impossible
A field locator that never locates a field.
|
protected static interface |
FieldValue.Binder.FieldLocator.Resolution
A resolution of a field locator.
|
Modifier | Constructor and Description |
---|---|
protected |
FieldLocator() |
Modifier and Type | Method and Description |
---|---|
protected static FieldValue.Binder.FieldLocator |
of(TypeDescription typeDescription,
TypeDescription instrumentedType)
Creates a field locator for the given type and instrumented type.
|
protected abstract FieldValue.Binder.FieldLocator.Resolution |
resolve(String fieldName,
boolean staticMethod)
Attempts to locate a type for a given field.
|
protected abstract FieldValue.Binder.FieldLocator.Resolution resolve(String fieldName, boolean staticMethod)
fieldName
- The name of the field.staticMethod
- true if the field is accessed from a static method.protected static FieldValue.Binder.FieldLocator of(TypeDescription typeDescription, TypeDescription instrumentedType)
typeDescription
- The type which is supposed to define the field or void
if a type should be located
in the hierarchy.instrumentedType
- The instrumented type from which the field is accessed.Copyright © 2014–2015. All rights reserved.