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:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis>
,MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading
protected static enum MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis extends java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis> implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory that resolves thethis
reference of the instrumented method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
OfInstrumentedMethodThis()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step
make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.static MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis[]
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.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis INSTANCE
The singleton instance.
-
-
Method Detail
-
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. This method may be used to iterate over the constants as follows:for (MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis c : MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis.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.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis 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
-
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.
-
-