Class RFMethodInfo

java.lang.Object
org.openjdk.jmh.generators.reflection.RFMethodInfo
All Implemented Interfaces:
Comparable<MethodInfo>, MetadataInfo, MethodInfo

class RFMethodInfo extends Object implements MethodInfo
  • Field Details

    • declaringClass

      private final RFClassInfo declaringClass
    • m

      private final Method m
  • Constructor Details

  • Method Details

    • 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.
    • 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
    • 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>