protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort extends Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort>
Enum Constant and Description |
---|
CONSTRUCTOR
Represents the supplied value as a
Constructor . |
EXECUTABLE
Represents the supplied value as a
java.lang.reflect.Executable . |
FIELD
Represents the supplied value as a
Field . |
LOOKUP
Represents the supplied value as a
java.lang.invoke.MethodHandles.Lookup . |
METHOD
Represents the supplied value as a
Method . |
METHOD_HANDLE
Represents the supplied value as a
java.lang.invoke.MethodHandle . |
METHOD_TYPE
Represents the supplied value as a
java.lang.invoke.MethodType . |
STRING
Represents the supplied value as its
Object.toString() representation. |
TYPE
Represents the supplied value as a
Class . |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
isRepresentable(ByteCodeElement.Member original)
Checks if the supplied member can be represented by this sort.
|
protected abstract StackManipulation |
resolve(ByteCodeElement.Member original,
List<TypeDescription> parameterTypes,
TypeDescription returnType)
Creates a stack manipulation for the supplied byte code element.
|
static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
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.
|
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHOD
Method
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort CONSTRUCTOR
Constructor
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort FIELD
Field
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort EXECUTABLE
java.lang.reflect.Executable
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort TYPE
Class
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort LOOKUP
java.lang.invoke.MethodHandles.Lookup
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHOD_HANDLE
java.lang.invoke.MethodHandle
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort METHOD_TYPE
java.lang.invoke.MethodType
.public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort STRING
Object.toString()
representation.public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort[] values()
for (MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort c : MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort.values()) System.out.println(c);
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Sort valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract boolean isRepresentable(ByteCodeElement.Member original)
original
- The byte code element to check.true
if the supplied element can be represented.protected abstract StackManipulation resolve(ByteCodeElement.Member original, List<TypeDescription> parameterTypes, TypeDescription returnType)
original
- The substituted element.parameterTypes
- The parameter types.returnType
- The return type.Copyright © 2014–2024. All rights reserved.