- All Superinterfaces:
Signature,Signature.RefTypeSig,Signature.ThrowableSig
- All Known Implementing Classes:
SignaturesImpl.ClassTypeSigImpl
- Enclosing interface:
Signature
public static sealed interface Signature.ClassTypeSig
extends Signature.RefTypeSig, Signature.ThrowableSig
permits SignaturesImpl.ClassTypeSigImpl
Models the signature of a possibly-parameterized class or interface type.
- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.Signature
Signature.ArrayTypeSig, Signature.BaseTypeSig, Signature.ClassTypeSig, Signature.RefTypeSig, Signature.ThrowableSig, Signature.TypeArg, Signature.TypeParam, Signature.TypeVarSig -
Method Summary
Modifier and TypeMethodDescriptiondefault ClassDescReturns the class name, as a symbolic descriptor.Returns the class name.static Signature.ClassTypeSigof(ClassDesc className, Signature.TypeArg... typeArgs) Returns a class type signature.static Signature.ClassTypeSigof(String className, Signature.TypeArg... typeArgs) Returns a class type signature.static Signature.ClassTypeSigof(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs) Returns a class type signature for an inner class.static Signature.ClassTypeSigof(Signature.ClassTypeSig outerType, String className, Signature.TypeArg... typeArgs) Returns a class type signature for an inner class.Returns the signature of the outer type, if any.typeArgs()Returns the type arguments of the class.Methods inherited from interface org.glavo.classfile.Signature
signatureString
-
Method Details
-
outerType
Optional<Signature.ClassTypeSig> 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
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
Returns a class type signature.- Parameters:
className- the name of the classtypeArgs- 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 typeclassName- the name of the classtypeArgs- signatures of the type arguments- Returns:
- a class type signature for an inner class
-
of
Returns a class type signature.- Parameters:
className- the name of the classtypeArgs- 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 typeclassName- the name of the classtypeArgs- signatures of the type arguments- Returns:
- a class type signature for an inner class
-