public static class SignatureAttribute.TypeParameter extends Object
SignatureAttribute.TypeArgument| Constructor and Description |
|---|
TypeParameter(String name)
Constructs a
TypeParameter representing a type parameter
like <T>. |
TypeParameter(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.
|
String |
getName()
Returns the name of the type parameter.
|
String |
toString()
Returns the string representation.
|
public TypeParameter(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(String name)
TypeParameter representing a type parameter
like <T>.name - parameter name.public String getName()
public SignatureAttribute.ObjectType getClassBound()
public SignatureAttribute.ObjectType[] getInterfaceBound()
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.