Package net.bytebuddy.dynamic.scaffold
Enum FieldLocator.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<FieldLocator.NoOp>
,java.lang.constant.Constable
,FieldLocator
,FieldLocator.Factory
- Enclosing interface:
FieldLocator
public static enum FieldLocator.NoOp
extends Enum<FieldLocator.NoOp>
implements FieldLocator, FieldLocator.Factory
A field locator that never discovers a field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.FieldLocator
FieldLocator.AbstractBase, FieldLocator.Factory, FieldLocator.ForClassHierarchy, FieldLocator.ForExactType, FieldLocator.ForTopLevelType, FieldLocator.NoOp, FieldLocator.Resolution
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLocates a field with the given name and throws an exception if no such type exists.locate
(String name, TypeDescription type) Locates a field with the given name and type and throws an exception if no such type exists.make
(TypeDescription typeDescription) Creates a field locator for a given type.static FieldLocator.NoOp
Returns the enum constant of this type with the specified name.static FieldLocator.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
make
Creates a field locator for a given type.- Specified by:
make
in interfaceFieldLocator.Factory
- Parameters:
typeDescription
- The type for which to create a field locator.- Returns:
- A suitable field locator.
-
locate
Locates a field with the given name and throws an exception if no such type exists.- Specified by:
locate
in interfaceFieldLocator
- Parameters:
name
- The name of the field to locate.- Returns:
- A resolution for a field lookup.
-
locate
Locates a field with the given name and type and throws an exception if no such type exists.- Specified by:
locate
in interfaceFieldLocator
- Parameters:
name
- The name of the field to locate.type
- The type fo the field to locate.- Returns:
- A resolution for a field lookup.
-