Package javassist.bytecode
Class SignatureAttribute.TypeParameter
java.lang.Object
javassist.bytecode.SignatureAttribute.TypeParameter
- Enclosing class:
SignatureAttribute
Formal type parameters.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) SignatureAttribute.ObjectType
(package private) SignatureAttribute.ObjectType[]
-
Constructor Summary
ConstructorsConstructorDescriptionTypeParameter
(String name) Constructs aTypeParameter
representing a type parameter like<T>
.TypeParameter
(String sig, int nb, int ne, SignatureAttribute.ObjectType sc, SignatureAttribute.ObjectType[] si) TypeParameter
(String name, SignatureAttribute.ObjectType superClass, SignatureAttribute.ObjectType[] superInterfaces) Constructs aTypeParameter
representing a type parametre like<T extends ...
-
Method Summary
Modifier and TypeMethodDescription(package private) void
encode
(StringBuilder sb) Returns the class bound of this parameter.Returns the interface bound of this parameter.getName()
Returns the name of the type parameter.toString()
Returns the string representation.(package private) static void
toString
(StringBuilder sbuf, SignatureAttribute.TypeParameter[] tp)
-
Field Details
-
name
String name -
superClass
SignatureAttribute.ObjectType superClass -
superInterfaces
SignatureAttribute.ObjectType[] superInterfaces
-
-
Constructor Details
-
TypeParameter
TypeParameter(String sig, int nb, int ne, SignatureAttribute.ObjectType sc, SignatureAttribute.ObjectType[] si) -
TypeParameter
public TypeParameter(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
Constructs aTypeParameter
representing a type parameter like<T>
.- Parameters:
name
- parameter name.
-
-
Method Details
-
getName
Returns the name of the type parameter. -
getClassBound
Returns the class bound of this parameter. -
getInterfaceBound
Returns the interface bound of this parameter.- Returns:
- a zero-length array if the interface bound is not specified.
-
toString
Returns the string representation. -
toString
-
encode
-