Enum MethodAttributeAppender.Explicit.Target.OnMethod
java.lang.Object
java.lang.Enum<MethodAttributeAppender.Explicit.Target.OnMethod>
net.bytebuddy.implementation.attribute.MethodAttributeAppender.Explicit.Target.OnMethod
- All Implemented Interfaces:
Serializable
,Comparable<MethodAttributeAppender.Explicit.Target.OnMethod>
,java.lang.constant.Constable
,MethodAttributeAppender.Explicit.Target
- Enclosing interface:
MethodAttributeAppender.Explicit.Target
public static enum MethodAttributeAppender.Explicit.Target.OnMethod
extends Enum<MethodAttributeAppender.Explicit.Target.OnMethod>
implements MethodAttributeAppender.Explicit.Target
A method attribute appender target for writing annotations directly onto the method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.MethodAttributeAppender.Explicit.Target
MethodAttributeAppender.Explicit.Target.OnMethod, MethodAttributeAppender.Explicit.Target.OnMethodParameter
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Materializes the target for a given creation process.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
The singleton instance.
-
-
Constructor Details
-
OnMethod
private OnMethod()
-
-
Method Details
-
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
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 AnnotationAppender.Target make(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription) Materializes the target for a given creation process.- Specified by:
make
in interfaceMethodAttributeAppender.Explicit.Target
- Parameters:
methodVisitor
- The method visitor to which the attributes that are represented by this attribute appender are written to.methodDescription
- The description of the method for which the given method visitor creates an instrumentation for.- Returns:
- The target of the annotation appender this target represents.
-