Top Description Fields Constructors Methods
org.jboss.jandex

public final Class UnresolvedTypeVariable

extends Type
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private final String
Inherited from org.jboss.jandex.Type:
EMPTY_ARRAY

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public UnresolvedTypeVariable
pack-priv Type
copyType(AnnotationInstance[] newAnnotations)

Implements abstract org.jboss.jandex.Type.copyType.

public boolean
equals(Object
the type to compare to
o
)

Overrides org.jboss.jandex.Type.equals.

Compares this Type with another type.
public int
hashCode()

Overrides org.jboss.jandex.Type.hashCode.

Computes a hash code representing this type.
public String

Returns:

the identifier of this type variable
identifier
()

Returns the identifier of this unresolved type variable as it appears in Java source code.

pack-priv boolean
pack-priv int
public Type.Kind
kind()

Implements abstract org.jboss.jandex.Type.kind.

Returns the kind of Type this is.
pack-priv String
toString(boolean simple)

Overrides org.jboss.jandex.Type.toString.

Inherited from org.jboss.jandex.Type:
addAnnotationannotationannotationArrayannotationsannotationsWithRepeatableappendAnnotationsasArrayTypeasClassTypeasParameterizedTypeasPrimitiveTypeasTypeVariableasTypeVariableReferenceasVoidTypeasWildcardTypecreatecreateWithAnnotationsdescriptorhasAnnotationnametoString

Field Detail

nameback to summary
private final String name

Hides org.jboss.jandex.Type.name.

Constructor Detail

UnresolvedTypeVariableback to summary
pack-priv UnresolvedTypeVariable(String name)
UnresolvedTypeVariableback to summary
pack-priv UnresolvedTypeVariable(String name, AnnotationInstance[] annotations)

Method Detail

asUnresolvedTypeVariableback to summary
public UnresolvedTypeVariable asUnresolvedTypeVariable()

Overrides org.jboss.jandex.Type.asUnresolvedTypeVariable.

Doc from org.jboss.jandex.Type.asUnresolvedTypeVariable.

Casts this type to an org.jboss.jandex.UnresolvedTypeVariable and returns it if the kind is Kind#UNRESOLVED_TYPE_VARIABLE. Throws an exception otherwise.

Returns:UnresolvedTypeVariable

an UnresolvedTypeVariable

Annotations
@Override
copyTypeback to summary
pack-priv Type copyType(AnnotationInstance[] newAnnotations)

Implements abstract org.jboss.jandex.Type.copyType.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides org.jboss.jandex.Type.equals.

Doc from org.jboss.jandex.Type.equals.

Compares this Type with 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.

Parameters
o:Object

the type to compare to

Returns:boolean

true if equal

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jboss.jandex.Type.hashCode.

Doc from org.jboss.jandex.Type.hashCode.

Computes a hash code representing this type.

Returns:int

the hash code

Annotations
@Override
identifierback to summary
public String 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:String

the identifier of this type variable

internEqualsback to summary
pack-priv boolean internEquals(Object o)

Overrides org.jboss.jandex.Type.internEquals.

Annotations
@Override
internHashCodeback to summary
pack-priv int internHashCode()

Overrides org.jboss.jandex.Type.internHashCode.

Annotations
@Override
kindback to summary
public Type.Kind kind()

Implements abstract org.jboss.jandex.Type.kind.

Doc from org.jboss.jandex.Type.kind.

Returns the kind of Type this is.

Returns:Type.Kind

the kind

Annotations
@Override
toStringback to summary
pack-priv String toString(boolean simple)

Overrides org.jboss.jandex.Type.toString.

Annotations
@Override