Class MethodTypeSignature

java.lang.Object
io.github.classgraph.HierarchicalTypeSignature
io.github.classgraph.MethodTypeSignature

public final class MethodTypeSignature extends HierarchicalTypeSignature
A method type signature (called "MethodSignature" in the classfile documentation).
  • Method Details

    • getTypeParameters

      public List<TypeParameter> getTypeParameters()
      Get the type parameters for the method, if this is a generic method.
      Returns:
      The type parameters for the method, if any, otherwise null.
    • getResultType

      public TypeSignature getResultType()
      Get the result type for the method.
      Returns:
      The result type for the method, as a TypeSignature parsed type object.
    • getThrowsSignatures

      public List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
      Get the throws type(s) for the method.
      Returns:
      The throws types for the method, as TypeSignature parsed type objects.
    • getReceiverTypeAnnotationInfo

      public AnnotationInfoList getReceiverTypeAnnotationInfo()
      Get type annotations on the explicit receiver parameter, or null if none.
      Returns:
      type annotations on the explicit receiver parameter, or null if none.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toStringWithSimpleNames

      public String toStringWithSimpleNames()
      Render to string, using only simple names for classes.
      Returns:
      the string representation, using simple names for classes.
    • toString

      public String toString()
      Render to string.
      Overrides:
      toString in class Object
      Returns:
      the string representation.