public class WildcardType extends Type
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayEquals(org.jboss.jandex.Interned[] a,
org.jboss.jandex.Interned[] b) |
static int |
arrayHashCode(org.jboss.jandex.Interned[] array) |
WildcardType |
asWildcardType()
Casts this type to a
WildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE. |
static WildcardType |
create(Type bound,
boolean isExtends)
Create a new mock instance of WildcardType.
|
boolean |
equals(Object o)
Compares this
Type with another type. |
Type |
extendsBound()
Returns the upper bound of this wildcard (e.g.
|
int |
hashCode()
Computes a hash code representing this type.
|
boolean |
internEquals(Object o) |
int |
internHashCode() |
Type.Kind |
kind()
Returns the kind of Type this is.
|
DotName |
name()
Returns the raw name of this type.
|
Type |
superBound()
Returns the lower bound of this wildcard (e.g.
|
annotation, annotations, annotationsWithRepeatable, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asUnresolvedTypeVariable, asVoidType, create, createWithAnnotations, hasAnnotation, toStringpublic static WildcardType create(Type bound, boolean isExtends)
bound - the bound (lower or upper)isExtends - true if lower, false if upper (super)public DotName name()
Type[[[Ljava.lang.String;) Classes are returned as a normal DotName.
Generic values are returned as the underlying raw value. For example,
a wildcard such as ? extends Number has a raw type of
Number.
public Type extendsBound()
SomeType for ? extends SomeType).
Returns java.lang.Object if this wildcard declares a lower bound
(? super SomeType).
Object if this wildcard has a lower boundpublic Type superBound()
SomeType for ? super SomeType).
Returns null if this wildcard declares an upper bound
(? extends SomeType).
null if this wildcard has an uper boundpublic WildcardType asWildcardType()
TypeWildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE. Throws an exception otherwise.asWildcardType in class TypeWildcardTypepublic boolean equals(Object o)
TypeType 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.equals in class Typeo - the type to compare toObject.equals(Object)public int hashCode()
Typepublic boolean internEquals(Object o)
internEquals in class Typepublic int internHashCode()
internHashCode in class Typepublic static boolean arrayEquals(org.jboss.jandex.Interned[] a,
org.jboss.jandex.Interned[] b)
public static int arrayHashCode(org.jboss.jandex.Interned[] array)
Copyright © 2018–2022. All rights reserved.