public static class FieldAccessor.FieldLocator.ForGivenType extends Object implements FieldAccessor.FieldLocator
Modifier and Type | Class and Description |
---|---|
static class |
FieldAccessor.FieldLocator.ForGivenType.Factory
A factory for a field locator locating given type.
|
FieldAccessor.FieldLocator.ForGivenType, FieldAccessor.FieldLocator.ForInstrumentedType, FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy
Constructor and Description |
---|
ForGivenType(TypeDescription targetType,
TypeDescription instrumentedType)
Creates a new field locator for a given type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
FieldDescription |
locate(String name,
boolean staticMethod)
Locates a field of a given name or throws an exception if no field with such a name exists.
|
String |
toString() |
public ForGivenType(TypeDescription targetType, TypeDescription instrumentedType)
targetType
- The type for which fields are to be looked up.instrumentedType
- The instrumented type onto which the field locator is to be applied.public FieldDescription locate(String name, boolean staticMethod)
FieldAccessor.FieldLocator
locate
in interface FieldAccessor.FieldLocator
name
- The name of the field to locate.staticMethod
- true
if the intercepted method is static.Copyright © 2014–2015. All rights reserved.