Package net.bytebuddy.dynamic.scaffold
Enum FieldLocator.Resolution.Illegal
- java.lang.Object
-
- java.lang.Enum<FieldLocator.Resolution.Illegal>
-
- net.bytebuddy.dynamic.scaffold.FieldLocator.Resolution.Illegal
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FieldLocator.Resolution.Illegal>
,FieldLocator.Resolution
- Enclosing interface:
- FieldLocator.Resolution
public static enum FieldLocator.Resolution.Illegal extends java.lang.Enum<FieldLocator.Resolution.Illegal> implements FieldLocator.Resolution
An illegal resolution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.FieldLocator.Resolution
FieldLocator.Resolution.Illegal, FieldLocator.Resolution.Simple
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Illegal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescription
getField()
Returns the field description if a field was located.boolean
isResolved()
Returnstrue
if a field was located.static FieldLocator.Resolution.Illegal
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FieldLocator.Resolution.Illegal[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final FieldLocator.Resolution.Illegal INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static FieldLocator.Resolution.Illegal[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FieldLocator.Resolution.Illegal c : FieldLocator.Resolution.Illegal.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldLocator.Resolution.Illegal valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isResolved
public boolean isResolved()
Returnstrue
if a field was located.- Specified by:
isResolved
in interfaceFieldLocator.Resolution
- Returns:
true
if a field was located.
-
getField
public FieldDescription getField()
Returns the field description if a field was located. This method must only be called if this resolution was actually resolved.- Specified by:
getField
in interfaceFieldLocator.Resolution
- Returns:
- The located field.
-
-