Top Description Inners Methods
org.easymock.bytebuddy.dynamic.scaffold

public Interface FieldLocator

Known Direct Implementers
org.easymock.bytebuddy.dynamic.scaffold.FieldLocator.NoOp, org.easymock.bytebuddy.dynamic.scaffold.FieldLocator.AbstractBase
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.field.FieldDescription, .FieldList, org.easymock.bytebuddy.description.method.MethodDescription, org.easymock.bytebuddy.description.type.TypeDefinition, .TypeDescription, org.easymock.bytebuddy.matcher.ElementMatcher

A field locator offers an interface for locating a field that is declared by a specified type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
FieldLocator.AbstractBase

An abstract base implementation of a field locator.

public static interface
FieldLocator.Factory

A factory for creating a FieldLocator.

public static class
FieldLocator.ForClassHierarchy

A field locator that looks up fields that are declared within a class's class hierarchy.

public static class
FieldLocator.ForExactType

A field locator that only looks up fields that are declared by a specific type.

public static class
FieldLocator.ForTopLevelType

A field locator that only locates fields in the top-level type.

public static enum
FieldLocator.NoOp

A field locator that never discovers a field.

public static interface
FieldLocator.Resolution

A resolution for a field lookup.

Method Summary

Modifier and TypeMethod and Description
public FieldLocator.Resolution

Returns:

A resolution for a field lookup.
locate
(String
The name of the field to locate.
name
)

Locates a field with the given name and throws an exception if no such type exists.

public FieldLocator.Resolution

Returns:

A resolution for a field lookup.
locate
(String
The name of the field to locate.
name
,
TypeDescription
The type fo the field to locate.
type
)

Locates a field with the given name and type and throws an exception if no such type exists.