Package javassist.bytecode
Class SignatureAttribute.TypeParameter
- java.lang.Object
-
- javassist.bytecode.SignatureAttribute.TypeParameter
-
- Enclosing class:
- SignatureAttribute
public static class SignatureAttribute.TypeParameter extends java.lang.Object
Formal type parameters.- See Also:
SignatureAttribute.TypeArgument
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
name
(package private) SignatureAttribute.ObjectType
superClass
(package private) SignatureAttribute.ObjectType[]
superInterfaces
-
Constructor Summary
Constructors Constructor Description TypeParameter(java.lang.String name)
Constructs aTypeParameter
representing a type parameter like<T>
.TypeParameter(java.lang.String sig, int nb, int ne, SignatureAttribute.ObjectType sc, SignatureAttribute.ObjectType[] si)
TypeParameter(java.lang.String name, SignatureAttribute.ObjectType superClass, SignatureAttribute.ObjectType[] superInterfaces)
Constructs aTypeParameter
representing a type parametre like<T extends ...
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
encode(java.lang.StringBuffer sb)
SignatureAttribute.ObjectType
getClassBound()
Returns the class bound of this parameter.SignatureAttribute.ObjectType[]
getInterfaceBound()
Returns the interface bound of this parameter.java.lang.String
getName()
Returns the name of the type parameter.java.lang.String
toString()
Returns the string representation.(package private) static void
toString(java.lang.StringBuffer sbuf, SignatureAttribute.TypeParameter[] tp)
-
-
-
Field Detail
-
name
java.lang.String name
-
superClass
SignatureAttribute.ObjectType superClass
-
superInterfaces
SignatureAttribute.ObjectType[] superInterfaces
-
-
Constructor Detail
-
TypeParameter
TypeParameter(java.lang.String sig, int nb, int ne, SignatureAttribute.ObjectType sc, SignatureAttribute.ObjectType[] si)
-
TypeParameter
public TypeParameter(java.lang.String name, SignatureAttribute.ObjectType superClass, SignatureAttribute.ObjectType[] superInterfaces)
Constructs aTypeParameter
representing a type parametre like<T extends ... >
.- Parameters:
name
- parameter name.superClass
- an upper bound class-type (or null).superInterfaces
- an upper bound interface-type (or null).
-
TypeParameter
public TypeParameter(java.lang.String name)
Constructs aTypeParameter
representing a type parameter like<T>
.- Parameters:
name
- parameter name.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the type parameter.
-
getClassBound
public SignatureAttribute.ObjectType getClassBound()
Returns the class bound of this parameter.
-
getInterfaceBound
public SignatureAttribute.ObjectType[] getInterfaceBound()
Returns the interface bound of this parameter.- Returns:
- a zero-length array if the interface bound is not specified.
-
toString
public java.lang.String toString()
Returns the string representation.- Overrides:
toString
in classjava.lang.Object
-
toString
static void toString(java.lang.StringBuffer sbuf, SignatureAttribute.TypeParameter[] tp)
-
encode
void encode(java.lang.StringBuffer sb)
-
-