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, namepublic 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.Objectpublic Type superBound()
public WildcardType asWildcardType()
TypeWildcardType and returns it if the kind is
Type.Kind.WILDCARD_TYPE
Throws an exception otherwise.asWildcardType in class TypeClassTypepublic String toString()
Typepublic boolean equals(Object o)
Typeequals in class Typeo - the type to compare toObject.equals(Object)Copyright © 2021 JBoss by Red Hat. All rights reserved.