public static class FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy extends Object implements FieldAccessor.FieldLocator
Modifier and Type | Class and Description |
---|---|
static class |
FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy.Factory
A field locator factory creating a
FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy . |
FieldAccessor.FieldLocator.ForGivenType, FieldAccessor.FieldLocator.ForInstrumentedType, FieldAccessor.FieldLocator.ForInstrumentedTypeHierarchy
Constructor and Description |
---|
ForInstrumentedTypeHierarchy(TypeDescription instrumentedType)
Creates a field locator that follows the type hierarchy.
|
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 ForInstrumentedTypeHierarchy(TypeDescription instrumentedType)
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–2016. All rights reserved.