public interface FieldLocator
| Modifier and Type | Interface and Description |
|---|---|
static class |
FieldLocator.AbstractBase
An abstract base implementation of a field locator.
|
static interface |
FieldLocator.Factory
A factory for creating a
FieldLocator. |
static class |
FieldLocator.ForClassHierarchy
A field locator that looks up fields that are declared within a class's class hierarchy.
|
static class |
FieldLocator.ForExactType
A field locator that only looks up fields that are declared by a specific type.
|
static class |
FieldLocator.NoOp
A field locator that never discovers a field.
|
static interface |
FieldLocator.Resolution
A resolution for a field lookup.
|
| Modifier and Type | Method and Description |
|---|---|
FieldLocator.Resolution |
locate(String name)
Locates a field with the given name and throws an exception if no such type exists.
|
FieldLocator.Resolution |
locate(String name,
TypeDescription type)
Locates a field with the given name and type and throws an exception if no such type exists.
|
FieldLocator.Resolution locate(String name)
name - The name of the field to locate.FieldLocator.Resolution locate(String name, TypeDescription type)
name - The name of the field to locate.type - The type fo the field to locate.Copyright © 2014–2016. All rights reserved.