Signature, Signature.RefTypeSig, Signature.ThrowableSigSignaturepublic static sealed interface Signature.ClassTypeSig extends Signature.RefTypeSig, Signature.ThrowableSig
Signature.ArrayTypeSig, Signature.BaseTypeSig, Signature.ClassTypeSig, Signature.RefTypeSig, Signature.ThrowableSig, Signature.TypeArg, Signature.TypeParam, Signature.TypeVarSig
| Modifier and Type | Method | Description |
|---|---|---|
default ClassDesc |
classDesc() |
Returns this class or interface, as a symbolic descriptor. |
String |
className() |
Returns the class or interface name; includes the slash-separated package name if there is no outer type. |
static Signature.ClassTypeSig |
of |
Returns a class or interface signature. |
static Signature.ClassTypeSig |
of |
Returns a class type signature. |
static Signature.ClassTypeSig |
of |
Returns a class or interface signature without an outer type. |
static Signature.ClassTypeSig |
of |
Returns a class or interface signature without an outer type. |
Optional |
outerType() |
Returns the signature of the class that this class is a member of, only if this is a member class. |
List |
typeArgs() |
Returns the type arguments of this class or interface. |
signatureString
Optional<Signature.ClassTypeSig> outerType()
String className()
default ClassDesc classDesc()
List<Signature.TypeArg> typeArgs()
static Signature.ClassTypeSig of(ClassDesc className, Signature.TypeArg... typeArgs)
className - the name of the class or interfacetypeArgs - the type argumentsIllegalArgumentException - if className does not represent a class or interfacestatic Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs)
outerType - signature of the outer type, may be null
className - the name of this class or interfacetypeArgs - the type argumentsIllegalArgumentException - if className does not represent a class or interfacestatic Signature.ClassTypeSig of(String className, Signature.TypeArg... typeArgs)
className - the name of the class or interfacetypeArgs - the type argumentsstatic Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, String className, Signature.TypeArg... typeArgs)
outerType - signature of the outer type, may be null
className - the name of this class or interfacetypeArgs - the type arguments
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/Signature.ClassTypeSig.html