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:
java.io.Serializable
,java.lang.Comparable<MethodAttributeAppender.Explicit.Target.OnMethod>
,MethodAttributeAppender.Explicit.Target
- Enclosing interface:
- MethodAttributeAppender.Explicit.Target
public static enum MethodAttributeAppender.Explicit.Target.OnMethod extends java.lang.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 interface net.bytebuddy.implementation.attribute.MethodAttributeAppender.Explicit.Target
MethodAttributeAppender.Explicit.Target.OnMethod, MethodAttributeAppender.Explicit.Target.OnMethodParameter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
OnMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationAppender.Target
make(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription)
Materializes the target for a given creation process.static MethodAttributeAppender.Explicit.Target.OnMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodAttributeAppender.Explicit.Target.OnMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodAttributeAppender.Explicit.Target.OnMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodAttributeAppender.Explicit.Target.OnMethod[] 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 (MethodAttributeAppender.Explicit.Target.OnMethod c : MethodAttributeAppender.Explicit.Target.OnMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodAttributeAppender.Explicit.Target.OnMethod 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 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.
-
-