Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod>
,MemberSubstitution.Substitution.Factory
- Enclosing class:
- MemberSubstitution.Substitution.ForMethodInvocation
static enum MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod extends java.lang.Enum<MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod> implements MemberSubstitution.Substitution.Factory
A factory for a substitution that invokes the instrumented method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
OfInstrumentedMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution
make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
Creates a substitution for an instrumented method.static MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod[]
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.ForMethodInvocation.OfInstrumentedMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod[] 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.ForMethodInvocation.OfInstrumentedMethod c : MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod.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.ForMethodInvocation.OfInstrumentedMethod 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 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.
-
-