Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis
java.lang.Object
java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis>
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis
- All Implemented Interfaces:
Serializable
,Comparable<MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis>
,java.lang.constant.Constable
,MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading
protected static enum MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis
extends Enum<MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis>
implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory that resolves the
this
reference of the instrumented method.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.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
-
INSTANCE
public static final MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis INSTANCEThe singleton instance.
-
-
Constructor Details
-
OfInstrumentedMethodThis
private OfInstrumentedMethodThis()
-
-
Method Details
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis[] 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.ForArgumentLoading.OfInstrumentedMethodThis 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
-
make
public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.Factory
- Parameters:
assigner
- The assigner to use.typing
- The typing to use.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- The substitution step to apply.
-