public static class Type.WildcardType extends Type implements WildcardType
Type.AnnotatedType, Type.ArrayType, Type.CapturedType, Type.CapturedUndetVar, Type.ClassType, Type.DelegatedType, Type.ErasedClassType, Type.ErrorType, Type.ForAll, Type.IntersectionClassType, Type.JCNoType, Type.JCPrimitiveType, Type.JCVoidType, Type.Mapping, Type.MethodType, Type.PackageType, Type.TypeVar, Type.UndetVar, Type.UnionClassType, Type.UnknownType, Type.Visitor<R,S>, Type.WildcardType
Modifier and Type | Field and Description |
---|---|
Type.TypeVar |
bound |
BoundKind |
kind |
Type |
type |
Constructor and Description |
---|
WildcardType(Type.WildcardType t,
Type.TypeVar bound) |
WildcardType(Type type,
BoundKind kind,
Symbol.TypeSymbol tsym) |
WildcardType(Type type,
BoundKind kind,
Symbol.TypeSymbol tsym,
Type.TypeVar bound) |
Modifier and Type | Method and Description |
---|---|
<R,S> R |
accept(Type.Visitor<R,S> v,
S s) |
<R,P> R |
accept(TypeVisitor<R,P> v,
P p)
Applies a visitor to this type.
|
boolean |
contains(Type t)
Does this type contain occurrences of type t?
|
Type |
getExtendsBound()
Returns the upper bound of this wildcard.
|
TypeKind |
getKind()
Returns the
kind of this type. |
Type |
getSuperBound()
Returns the lower bound of this wildcard.
|
TypeTag |
getTag()
Returns the current type tag.
|
boolean |
isExtendsBound() |
boolean |
isNullOrReference() |
boolean |
isReference() |
boolean |
isSuperBound() |
boolean |
isUnbound() |
Type |
map(Type.Mapping f)
map a type function over all immediate descendants of this type
|
String |
toString()
The Java source which this type represents.
|
Type |
withTypeVar(Type t) |
allparams, annotatedType, argtypes, asElement, asMethodType, baseType, baseTypes, complete, constType, constValue, contains, containsAny, containsAny, equals, filter, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosingType, getLowerBound, getModelType, getModelTypes, getOriginalType, getParameterTypes, getReceiverType, getReturnType, getThrownTypes, getTypeArguments, getUpperBound, hashCode, hasTag, isAnnotated, isCompound, isErroneous, isErroneous, isFalse, isFinal, isInterface, isNumeric, isParameterized, isPartial, isPrimitive, isPrimitiveOrVoid, isRaw, isTrue, map, stringValue, toString, unannotatedType
getAttribute, getInheritedAnnotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, hashCode
getAnnotation, getAnnotationMirrors, getAnnotationsByType
public Type type
public BoundKind kind
public Type.TypeVar bound
public WildcardType(Type type, BoundKind kind, Symbol.TypeSymbol tsym)
public WildcardType(Type.WildcardType t, Type.TypeVar bound)
public WildcardType(Type type, BoundKind kind, Symbol.TypeSymbol tsym, Type.TypeVar bound)
public <R,S> R accept(Type.Visitor<R,S> v, S s)
public boolean contains(Type t)
Type
public boolean isSuperBound()
isSuperBound
in class Type
public boolean isExtendsBound()
isExtendsBound
in class Type
public boolean isReference()
isReference
in class Type
public boolean isNullOrReference()
isNullOrReference
in class Type
public Type withTypeVar(Type t)
withTypeVar
in class Type
public String toString()
Type
toString
in interface TypeMirror
toString
in class Type
public Type map(Type.Mapping f)
Type
public Type getExtendsBound()
WildcardType
null
is returned.getExtendsBound
in interface WildcardType
public Type getSuperBound()
WildcardType
null
is returned.getSuperBound
in interface WildcardType
public TypeKind getKind()
TypeMirror
kind
of this type.getKind
in interface TypeMirror
getKind
in class Type
public <R,P> R accept(TypeVisitor<R,P> v, P p)
TypeMirror
accept
in interface TypeMirror
accept
in class Type
R
- the return type of the visitor's methodsP
- the type of the additional parameter to the visitor's methodsv
- the visitor operating on this typep
- additional parameter to the visitorCopyright © 2015. All rights reserved.