Package net.bytebuddy.dynamic.scaffold
Enum Class FieldLocator.Resolution.Illegal
java.lang.Object
java.lang.Enum<FieldLocator.Resolution.Illegal>
net.bytebuddy.dynamic.scaffold.FieldLocator.Resolution.Illegal
- All Implemented Interfaces:
Serializable
,Comparable<FieldLocator.Resolution.Illegal>
,Constable
,FieldLocator.Resolution
- Enclosing interface:
FieldLocator.Resolution
public static enum FieldLocator.Resolution.Illegal
extends Enum<FieldLocator.Resolution.Illegal>
implements FieldLocator.Resolution
An illegal resolution.
-
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.Resolution
FieldLocator.Resolution.Illegal, FieldLocator.Resolution.Simple
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()
Returns the field description if a field was located.boolean
Returnstrue
if a field was located.Returns the enum constant of this class with the specified name.static FieldLocator.Resolution.Illegal[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Illegal
private Illegal()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- 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
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.
-