Class ASMMethodInfo

java.lang.Object
org.objectweb.asm.MethodVisitor
org.openjdk.jmh.generators.asm.ASMMethodInfo
All Implemented Interfaces:
Comparable<MethodInfo>, MetadataInfo, MethodInfo

class ASMMethodInfo extends org.objectweb.asm.MethodVisitor implements MethodInfo
  • Field Details

  • Constructor Details

  • Method Details

    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annClass)
      Specified by:
      getAnnotation in interface MethodInfo
      Type Parameters:
      T - annotation type
      Parameters:
      annClass - annotation class
      Returns:
      method-level annotation, if any; null otherwise
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
      Overrides:
      visitAnnotation in class org.objectweb.asm.MethodVisitor
    • getDeclaringClass

      public ClassInfo getDeclaringClass()
      Specified by:
      getDeclaringClass in interface MethodInfo
      Returns:
      reference to syntactically-enclosing class
    • getName

      public String getName()
      Specified by:
      getName in interface MethodInfo
      Returns:
      short method name.
    • getQualifiedName

      public String getQualifiedName()
      Specified by:
      getQualifiedName in interface MethodInfo
      Returns:
      fully qualified method name, includes class qualified name
    • getReturnType

      public String getReturnType()
      Specified by:
      getReturnType in interface MethodInfo
      Returns:
      fully qualified return type
    • getParameters

      public Collection<ParameterInfo> getParameters()
      Specified by:
      getParameters in interface MethodInfo
      Returns:
      collection of method parameters.
    • isPublic

      public boolean isPublic()
      Specified by:
      isPublic in interface MethodInfo
      Returns:
      true, if method is public
    • isAbstract

      public boolean isAbstract()
      Specified by:
      isAbstract in interface MethodInfo
      Returns:
      true, if method is abstract
    • isSynchronized

      public boolean isSynchronized()
      Specified by:
      isSynchronized in interface MethodInfo
      Returns:
      true, if method is synchronized
    • isStrictFP

      public boolean isStrictFP()
      Specified by:
      isStrictFP in interface MethodInfo
      Returns:
      true, if method is strictfp
    • isStatic

      public boolean isStatic()
      Specified by:
      isStatic in interface MethodInfo
      Returns:
      true, if method is static
    • compareTo

      public int compareTo(MethodInfo o)
      Specified by:
      compareTo in interface Comparable<MethodInfo>
    • toString

      public String toString()
      Overrides:
      toString in class Object