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

    • ReferenceTypeSignature

      protected ReferenceTypeSignature()
      Constructor.
  • Method Details

    • parseReferenceTypeSignature

      static ReferenceTypeSignature parseReferenceTypeSignature(Parser parser, String definingClassName) throws ParseException
      Parse a reference type signature.
      Parameters:
      parser - The parser
      definingClassName - The class containing the type descriptor.
      Returns:
      The parsed type reference type signature.
      Throws:
      ParseException - If the type signature could not be parsed.
    • parseClassBound

      static ReferenceTypeSignature parseClassBound(Parser parser, String definingClassName) throws ParseException
      Parse a class bound.
      Parameters:
      parser - The parser.
      definingClassName - The class containing the type descriptor.
      Returns:
      The parsed class bound.
      Throws:
      ParseException - If the type signature could not be parsed.