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
FieldsModifier and TypeFieldDescription(package private) SignatureAttribute.TypeArgument[]
(package private) String
static SignatureAttribute.ClassType
A class type representingjava.lang.Object
. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aClassType
.ClassType
(String signature, int begin, int end, SignatureAttribute.TypeArgument[] targs) ClassType
(String className, SignatureAttribute.TypeArgument[] args) Constructs aClassType
. -
Method Summary
Modifier and TypeMethodDescription(package private) void
encode
(StringBuilder sb) (package private) void
encode2
(StringBuilder sb) If this class is a member of another class, returns the class in which this class is declared.getName()
Returns the class name.Returns the type arguments.Returns the type name in the JVM internal style.(package private) static SignatureAttribute.ClassType
make
(String s, int b, int e, SignatureAttribute.TypeArgument[] targs, SignatureAttribute.ClassType parent) toString()
Returns the string representation.private String
toString2
(StringBuilder sbuf) Methods inherited from class javassist.bytecode.SignatureAttribute.ObjectType
encode
Methods inherited from class javassist.bytecode.SignatureAttribute.Type
toString
-
Field Details
-
name
String name -
arguments
SignatureAttribute.TypeArgument[] arguments -
OBJECT
A class type representingjava.lang.Object
.
-
-
Constructor Details
-
ClassType
ClassType(String signature, int begin, int end, SignatureAttribute.TypeArgument[] targs) -
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
-
make
static SignatureAttribute.ClassType make(String s, int b, int e, SignatureAttribute.TypeArgument[] targs, SignatureAttribute.ClassType parent) -
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. -
toString2
-
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
-
encode
- Specified by:
encode
in classSignatureAttribute.Type
-
encode2
-