public class TypeVariableSignature extends ClassRefOrTypeVariableSignature
Modifier and Type | Field | Description |
---|---|---|
protected ScanResult |
scanResult |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
boolean |
equalsIgnoringTypeParams(TypeSignature other) |
Compare base types, ignoring generic type parameters.
|
protected String |
getClassName() |
Return definingClassName, so that getClassInfo() returns the
ClassInfo object for the containing
class. |
String |
getName() |
Get the name of the type variable.
|
int |
hashCode() |
|
TypeParameter |
resolve() |
Look up a type variable (e.g.
|
String |
toString() |
|
String |
toStringWithTypeBound() |
Returns the type variable along with its type bound, if available (e.g.
|
protected transient ScanResult scanResult
public String getName()
public TypeParameter resolve()
IllegalArgumentException
- if a type parameter with the same name as the type variable could not be found in the defining
method or the enclosing class.protected String getClassName()
ClassInfo
object for the containing
class.public boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignature
equalsIgnoringTypeParams
in class TypeSignature
other
- the other TypeSignature
to compare to.TypeSignature
objects are equal, ignoring type parameters.public String toStringWithTypeBound()
resolve()
. Returns just the type variable if there is no type
bound, or if no type bound is known (i.e. if resolve()
returns null).Copyright © 2018. All rights reserved.