Package net.bytebuddy.asm
Enum MemberSubstitution.Replacement.Binding.Unresolved
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Replacement.Binding.Unresolved>
-
- net.bytebuddy.asm.MemberSubstitution.Replacement.Binding.Unresolved
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Replacement.Binding.Unresolved>
,MemberSubstitution.Replacement.Binding
- Enclosing interface:
- MemberSubstitution.Replacement.Binding
public static enum MemberSubstitution.Replacement.Binding.Unresolved extends java.lang.Enum<MemberSubstitution.Replacement.Binding.Unresolved> implements MemberSubstitution.Replacement.Binding
An unresolved binding.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Replacement.Binding
MemberSubstitution.Replacement.Binding.Resolved, MemberSubstitution.Replacement.Binding.Unresolved
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Unresolved()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBound()
Returnstrue
if this binding is resolved.StackManipulation
make(TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Creates a stack manipulation that represents the substitution.static MemberSubstitution.Replacement.Binding.Unresolved
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberSubstitution.Replacement.Binding.Unresolved[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MemberSubstitution.Replacement.Binding.Unresolved INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MemberSubstitution.Replacement.Binding.Unresolved[] 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 (MemberSubstitution.Replacement.Binding.Unresolved c : MemberSubstitution.Replacement.Binding.Unresolved.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemberSubstitution.Replacement.Binding.Unresolved 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
-
isBound
public boolean isBound()
Returnstrue
if this binding is resolved.- Specified by:
isBound
in interfaceMemberSubstitution.Replacement.Binding
- Returns:
true
if this binding is resolved.
-
make
public StackManipulation make(TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
Creates a stack manipulation that represents the substitution. This method can only be called for actually bound bindings.- Specified by:
make
in interfaceMemberSubstitution.Replacement.Binding
- Parameters:
parameters
- The parameters that are accessible to the substitution target.result
- The result that is expected from the substitution target orvoid
if none is expected.freeOffset
- The first offset that can be used for storing local variables.- Returns:
- A stack manipulation that represents the replacement.
-
-