Enum Class 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>, 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.
  • Enum Constant Details

  • Constructor Details

    • OnMethod

      private OnMethod()
  • 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

      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 name
      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 interface MethodAttributeAppender.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.