public class TypeVariableSignature extends ClassRefOrTypeVariableSignature
| Constructor | Description |
|---|---|
TypeVariableSignature(String typeVariableName) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
boolean |
equalsIgnoringTypeParams(TypeSignature other) |
Compare base types, ignoring generic type parameters.
|
void |
getAllReferencedClassNames(Set<String> classNameListOut) |
Get the names of all classes referenced in the type signature
|
TypeParameter |
getCorrespondingTypeParameter() |
Look up a type variable (e.g.
|
String |
getTypeVariableName() |
Get the name of the type variable.
|
int |
hashCode() |
|
Class<?> |
instantiate(ScanResult scanResult) |
Instantiate the type signature into a class reference.
|
String |
toString() |
|
String |
toStringWithTypeBound() |
Returns the type variable along with its type bound, if available (e.g.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitparsepublic TypeVariableSignature(String typeVariableName)
typeVariableName - The type variable name.public String getTypeVariableName()
public TypeParameter getCorrespondingTypeParameter()
public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignatureclassNameListOut - The set to store class names in.public Class<?> instantiate(ScanResult scanResult)
TypeSignatureinstantiate in class TypeSignaturescanResult - The scan result.Class<?>.public boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignatureequalsIgnoringTypeParams in class TypeSignatureother - the other TypeSignature to compare to.TypeSignature objects are equal, ignoring type parameters.public String toStringWithTypeBound()
getCorrespondingTypeParameter(). Returns just the type variable
if there is no type bound, or if no type bound is known (i.e. if getCorrespondingTypeParameter() returns
null).Copyright © 2018. All rights reserved.