Interface MethodInfo

All Superinterfaces:
Comparable<MethodInfo>, MetadataInfo
All Known Implementing Classes:
APMethodInfo, ASMMethodInfo, RFConstructorInfo, RFMethodInfo

public interface MethodInfo extends Comparable<MethodInfo>, MetadataInfo
Method info.
  • Method Details

    • getName

      String getName()
      Returns:
      short method name.
    • getQualifiedName

      String getQualifiedName()
      Returns:
      fully qualified method name, includes class qualified name
    • getReturnType

      String getReturnType()
      Returns:
      fully qualified return type
    • getParameters

      Collection<ParameterInfo> getParameters()
      Returns:
      collection of method parameters.
    • getDeclaringClass

      ClassInfo getDeclaringClass()
      Returns:
      reference to syntactically-enclosing class
    • getAnnotation

      <T extends Annotation> T getAnnotation(Class<T> annClass)
      Type Parameters:
      T - annotation type
      Parameters:
      annClass - annotation class
      Returns:
      method-level annotation, if any; null otherwise
    • isPublic

      boolean isPublic()
      Returns:
      true, if method is public
    • isAbstract

      boolean isAbstract()
      Returns:
      true, if method is abstract
    • isSynchronized

      boolean isSynchronized()
      Returns:
      true, if method is synchronized
    • isStrictFP

      boolean isStrictFP()
      Returns:
      true, if method is strictfp
    • isStatic

      boolean isStatic()
      Returns:
      true, if method is static