Package javassist.bytecode
Class SignatureAttribute.ClassSignature
- java.lang.Object
-
- javassist.bytecode.SignatureAttribute.ClassSignature
-
- Enclosing class:
- SignatureAttribute
public static class SignatureAttribute.ClassSignature extends java.lang.Object
Class signature.
-
-
Constructor Summary
Constructors Constructor Description ClassSignature(SignatureAttribute.TypeParameter[] p)
Constructs a class signature.ClassSignature(SignatureAttribute.TypeParameter[] params, SignatureAttribute.ClassType superClass, SignatureAttribute.ClassType[] interfaces)
Constructs a class signature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
encode()
Returns the encoded string representing the method type signature.SignatureAttribute.ClassType[]
getInterfaces()
Returns the super interfaces.SignatureAttribute.TypeParameter[]
getParameters()
Returns the type parameters.SignatureAttribute.ClassType
getSuperClass()
Returns the super class.java.lang.String
toString()
Returns the string representation.
-
-
-
Constructor Detail
-
ClassSignature
public ClassSignature(SignatureAttribute.TypeParameter[] params, SignatureAttribute.ClassType superClass, SignatureAttribute.ClassType[] interfaces)
Constructs a class signature.- Parameters:
params
- type parameters.superClass
- the super class.interfaces
- the interface types.
-
ClassSignature
public ClassSignature(SignatureAttribute.TypeParameter[] p)
Constructs a class signature.- Parameters:
p
- type parameters.
-
-
Method Detail
-
getParameters
public SignatureAttribute.TypeParameter[] getParameters()
Returns the type parameters.- Returns:
- a zero-length array if the type parameters are not specified.
-
getSuperClass
public SignatureAttribute.ClassType getSuperClass()
Returns the super class.
-
getInterfaces
public SignatureAttribute.ClassType[] getInterfaces()
Returns the super interfaces.- Returns:
- a zero-length array if the super interfaces are not specified.
-
toString
public java.lang.String toString()
Returns the string representation.- Overrides:
toString
in classjava.lang.Object
-
encode
public java.lang.String encode()
Returns the encoded string representing the method type signature.
-
-