public final class UnresolvedTypeVariable extends Type
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
UnresolvedTypeVariable |
asUnresolvedTypeVariable()
Casts this type to an
UnresolvedTypeVariable and returns it if the kind is
Type.Kind.UNRESOLVED_TYPE_VARIABLE
Throws an exception otherwise. |
boolean |
equals(Object o)
Compares this Type with another type, and returns true if they are equivalent.
|
int |
hashCode()
Computes a hash code representing this type.
|
String |
identifier()
The identifier of this unresolved type variable as it appears in Java source code.
|
Type.Kind |
kind()
Returns the kind of Type this is.
|
String |
toString()
Returns a string representation for this type.
|
annotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asVoidType, asWildcardType, create, name
public String identifier()
The following class has a type parameter, with an identifier of "T":
class Foo<T extends Number> {}
public UnresolvedTypeVariable asUnresolvedTypeVariable()
Type
UnresolvedTypeVariable
and returns it if the kind is
Type.Kind.UNRESOLVED_TYPE_VARIABLE
Throws an exception otherwise.asUnresolvedTypeVariable
in class Type
ClassType
public String toString()
Type
public boolean equals(Object o)
Type
equals
in class Type
o
- the type to compare toObject.equals(Object)
Copyright © 2018 JBoss by Red Hat. All rights reserved.