Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort
java.lang.Object
java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort>
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort
- All Implemented Interfaces:
Serializable
,Comparable<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort>
,java.lang.constant.Constable
protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort
extends Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort>
The sort of the origin expression.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the supplied value as aConstructor
.Represents the supplied value as ajava.lang.reflect.Executable
.Represents the supplied value as aField
.Represents the supplied value as ajava.lang.invoke.MethodHandles.Lookup
.Represents the supplied value as aMethod
.Represents the supplied value as ajava.lang.invoke.MethodHandle
.Represents the supplied value as ajava.lang.invoke.MethodType
.Represents the supplied value as itsObject.toString()
representation.Represents the supplied value as aClass
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
Checks if the supplied member can be represented by this sort.protected abstract StackManipulation
resolve
(ByteCodeElement.Member member, List<TypeDescription> parameterTypes, TypeDescription returnType) Creates a stack manipulation for the supplied byte code element.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METHOD
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHODRepresents the supplied value as aMethod
. -
CONSTRUCTOR
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort CONSTRUCTORRepresents the supplied value as aConstructor
. -
FIELD
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort FIELDRepresents the supplied value as aField
. -
EXECUTABLE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort EXECUTABLERepresents the supplied value as ajava.lang.reflect.Executable
. -
TYPE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort TYPERepresents the supplied value as aClass
. -
LOOKUP
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort LOOKUPRepresents the supplied value as ajava.lang.invoke.MethodHandles.Lookup
. -
METHOD_HANDLE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHOD_HANDLERepresents the supplied value as ajava.lang.invoke.MethodHandle
. -
METHOD_TYPE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHOD_TYPERepresents the supplied value as ajava.lang.invoke.MethodType
. -
STRING
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort STRINGRepresents the supplied value as itsObject.toString()
representation.
-
-
Constructor Details
-
Sort
private Sort()
-
-
Method Details
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort[] 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
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isRepresentable
Checks if the supplied member can be represented by this sort.- Parameters:
member
- The member that is considered for binding.- Returns:
true
if the supplied element can be represented.
-
resolve
protected abstract StackManipulation resolve(ByteCodeElement.Member member, List<TypeDescription> parameterTypes, TypeDescription returnType) Creates a stack manipulation for the supplied byte code element.- Parameters:
member
- The member that is being bound.parameterTypes
- The parameter types.returnType
- The return type.- Returns:
- A stack manipulation loading the supplied byte code element's representation onto the stack.
-