public class WildcardType extends Type
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
WildcardType |
asWildcardType()
Casts this type to a
WildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE
Throws an exception otherwise. |
static WildcardType |
create(Type bound,
boolean isExtends)
Create a new mock instance of WildcardType.
|
boolean |
equals(Object o)
Compares this Type with another type, and returns true if they are equivalent.
|
Type |
extendsBound()
Returns the extends (upper) bound of this wildcard.
|
int |
hashCode()
Computes a hash code representing this type.
|
Type.Kind |
kind()
Returns the kind of Type this is.
|
Type |
superBound()
Returns the super (lower) bound of this wildcard.
|
String |
toString()
Returns a string representation for this type.
|
annotation, annotations, asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, create, hasAnnotation, name
public static WildcardType create(Type bound, boolean isExtends)
bound
- the bound (lower or upper)isExtends
- true if lower, false if upper (super)public Type extendsBound()
java.lang.Object
public Type superBound()
public WildcardType asWildcardType()
Type
WildcardType
and returns it if the kind is
Type.Kind.WILDCARD_TYPE
Throws an exception otherwise.asWildcardType
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 © 2020 JBoss by Red Hat. All rights reserved.