Class ReferenceTypeSignature

Direct Known Subclasses:
ArrayTypeSignature, ClassRefOrTypeVariableSignature

public abstract class ReferenceTypeSignature extends TypeSignature
A type signature for a reference type. Subclasses are ClassRefOrTypeVariableSignature (ClassRefTypeSignature or TypeVariableSignature), and ArrayTypeSignature.
  • Field Details

    • scanResult

      protected transient ScanResult scanResult
      The scan result.
    • classRef

      protected transient Class<?> classRef
      The class ref, once the class is loaded.
  • Constructor Details

    • ReferenceTypeSignature

      protected ReferenceTypeSignature()
      Constructor.
  • Method Details

    • getClassName

      protected abstract String getClassName()
      The name of the class (used by ScanResultObject.getClassInfo() to fetch the ClassInfo object for the class).
      Returns:
      The class name.
    • 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.