public class TypeVariableSignature extends ClassRefOrTypeVariableSignature
| Constructor and Description |
|---|
TypeVariableSignature(String typeVariableName) |
| Modifier and Type | Method and 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.
|
parsepublic TypeVariableSignature(String typeVariableName)
public String getTypeVariableName()
public TypeParameter getCorrespondingTypeParameter()
public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignaturepublic Class<?> instantiate(ScanResult scanResult)
TypeSignatureinstantiate in class TypeSignaturepublic boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignatureequalsIgnoringTypeParams in class TypeSignaturepublic 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.