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
-
Nested Class Summary
Nested classes/interfaces declared in interface Signature
Signature.ArrayTypeSig, Signature.BaseTypeSig, Signature.ClassTypeSig, Signature.RefTypeSig, Signature.ThrowableSig, Signature.TypeArg, Signature.TypeParam, Signature.TypeVarSig
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClassDesc
Returns the class name, as a symbolic descriptor.Returns the class name.static Signature.ClassTypeSig
of
(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs) Returns a class type signature for an inner class.static Signature.ClassTypeSig
of
(Signature.ClassTypeSig outerType, String className, Signature.TypeArg... typeArgs) Returns a class type signature for an inner class.static Signature.ClassTypeSig
of
(ClassDesc className, Signature.TypeArg... typeArgs) Returns a class type signature.static Signature.ClassTypeSig
of
(String className, Signature.TypeArg... typeArgs) Returns a class type signature.Returns the signature of the outer type, if any.typeArgs()
Returns the type arguments of the class.Methods declared in interface 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
-
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
-