Class UnresolvedTypeVariable
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.UnresolvedTypeVariable
- All Implemented Interfaces:
Descriptor
Represents a type variable that could not be resolved during indexing. This type may occur
when indexing an incomplete classpath, or as a result of a bug, or a non-compliant Java class file.
It is provided in order to prevent failure.
- Author:
- Jason T. Greene
-
Nested Class Summary
-
Field Summary
Fields inherited from class Type
EMPTY_ARRAYFields inherited from interface Descriptor
NO_SUBSTITUTION -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to anUnresolvedTypeVariableand returns it if the kind isType.Kind.UNRESOLVED_TYPE_VARIABLE.booleanCompares thisTypewith another type.inthashCode()Computes a hash code representing this type.Returns the identifier of this unresolved type variable as it appears in Java source code.kind()Returns the kind of Type this is.Methods inherited from class Type
annotation, annotations, annotationsWithRepeatable, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asVoidType, asWildcardType, create, create, createWithAnnotations, descriptor, hasAnnotation, name, parse, toStringMethods inherited from interface Descriptor
descriptor
-
Method Details
-
identifier
Returns the identifier of this unresolved type variable as it appears in Java source code.For example, the following class has a type parameter with an identifier of
T:class Foo<T extends Number> { }- Returns:
- the identifier of this type variable
-
kind
-
asUnresolvedTypeVariable
Description copied from class:TypeCasts this type to anUnresolvedTypeVariableand returns it if the kind isType.Kind.UNRESOLVED_TYPE_VARIABLE. Throws an exception otherwise.- Overrides:
asUnresolvedTypeVariablein classType- Returns:
- an
UnresolvedTypeVariable
-
equals
Description copied from class:TypeCompares thisTypewith another type. A type is equal to another type if it is of the same kind, and all of their fields are equal. This includes annotations, which must be equal as well. -
hashCode
-