Interface Signature.ClassTypeSig

All Superinterfaces:
Signature, Signature.RefTypeSig, Signature.ThrowableSig
Enclosing interface:
Signature

public static sealed interface Signature.ClassTypeSig extends Signature.RefTypeSig, Signature.ThrowableSig
Models the signature of a possibly-parameterized class or interface type.
Since:
24
  • Method Details

    • outerType

      Returns the signature of the outer type, if any.
      Returns:
      the signature of the outer type, if any
    • className

      String className()
      Returns the class name.
      Returns:
      the class name
    • classDesc

      default ClassDesc classDesc()
      Returns the class name, as a symbolic descriptor.
      Returns:
      the class name, as a symbolic descriptor
    • typeArgs

      List<Signature.TypeArg> typeArgs()
      Returns the type arguments of the class.
      Returns:
      the type arguments of the class
    • of

      static Signature.ClassTypeSig of(ClassDesc className, Signature.TypeArg... typeArgs)
      Returns a class type signature.
      Parameters:
      className - the name of the class
      typeArgs - signatures of the type arguments
      Returns:
      a class type signature
    • of

      static Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs)
      Returns a class type signature for an inner class.
      Parameters:
      outerType - signature of the outer type
      className - the name of the class
      typeArgs - signatures of the type arguments
      Returns:
      a class type signature for an inner class
    • of

      static Signature.ClassTypeSig of(String className, Signature.TypeArg... typeArgs)
      Returns a class type signature.
      Parameters:
      className - the name of the class
      typeArgs - signatures of the type arguments
      Returns:
      a class type signature
    • of

      static Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, String className, Signature.TypeArg... typeArgs)
      Returns a class type signature for an inner class.
      Parameters:
      outerType - signature of the outer type
      className - the name of the class
      typeArgs - signatures of the type arguments
      Returns:
      a class type signature for an inner class