public static class SignatureAttribute.TypeParameter
extends java.lang.Object
SignatureAttribute.TypeArgument
Constructor and Description |
---|
TypeParameter(java.lang.String name)
Constructs a
TypeParameter representing a type parameter
like <T> . |
TypeParameter(java.lang.String name,
SignatureAttribute.ObjectType superClass,
SignatureAttribute.ObjectType[] superInterfaces)
Constructs a
TypeParameter representing a type parametre
like <T extends ... |
Modifier and Type | Method and Description |
---|---|
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.
|
public TypeParameter(java.lang.String name, SignatureAttribute.ObjectType superClass, SignatureAttribute.ObjectType[] superInterfaces)
TypeParameter
representing a type parametre
like <T extends ... >
.name
- parameter name.superClass
- an upper bound class-type (or null).superInterfaces
- an upper bound interface-type (or null).public TypeParameter(java.lang.String name)
TypeParameter
representing a type parameter
like <T>
.name
- parameter name.public java.lang.String getName()
public SignatureAttribute.ObjectType getClassBound()
public SignatureAttribute.ObjectType[] getInterfaceBound()
public java.lang.String toString()
toString
in class java.lang.Object
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.