Package javassist.bytecode
Class SignatureAttribute.ClassType
java.lang.Object
javassist.bytecode.SignatureAttribute.Type
javassist.bytecode.SignatureAttribute.ObjectType
javassist.bytecode.SignatureAttribute.ClassType
- Direct Known Subclasses:
SignatureAttribute.NestedClassType
- Enclosing class:
SignatureAttribute
Class types.
-
Field Summary
Modifier and TypeFieldDescriptionstatic SignatureAttribute.ClassType
A class type representingjava.lang.Object
. -
Constructor Summary
ConstructorDescriptionConstructs aClassType
.ClassType
(String className, SignatureAttribute.TypeArgument[] args) Constructs aClassType
. -
Method Summary
Methods inherited from class javassist.bytecode.SignatureAttribute.ObjectType
encode
-
Field Details
-
OBJECT
A class type representingjava.lang.Object
.
-
-
Constructor Details
-
ClassType
Constructs aClassType
. It represents the name of a non-nested class.- Parameters:
className
- a fully qualified class name.args
- type arguments or null.
-
ClassType
Constructs aClassType
. It represents the name of a non-nested class.- Parameters:
className
- a fully qualified class name.
-
-
Method Details
-
getName
Returns the class name. -
getTypeArguments
Returns the type arguments.- Returns:
- null if no type arguments are given to this class.
-
getDeclaringClass
If this class is a member of another class, returns the class in which this class is declared.- Returns:
- null if this class is not a member of another class.
-
toString
Returns the string representation. -
jvmTypeName
Returns the type name in the JVM internal style. For example, if the type is a nested classfoo.Bar.Baz
, thenfoo.Bar$Baz
is returned.- Overrides:
jvmTypeName
in classSignatureAttribute.Type
-