Package net.bytebuddy.asm
Enum Class MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
java.lang.Object
java.lang.Enum<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod>
net.bytebuddy.asm.MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
- All Implemented Interfaces:
Serializable
,Comparable<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod>
,Constable
,MemberSubstitution.Substitution.Factory
- Enclosing class:
MemberSubstitution.Substitution.ForMethodInvocation
static enum MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
extends Enum<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod>
implements MemberSubstitution.Substitution.Factory
A factory for a substitution that invokes 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
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
public static final MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod INSTANCEThe singleton instance.
-
-
Constructor Details
-
OfInstrumentedMethod
private OfInstrumentedMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
make
public MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Factory
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used.- Returns:
- The substitution to apply within the instrumented method.
-