public static class Type.ForAll extends Type.DelegatedType implements ExecutableType
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 |
---|---|
List<Type> |
tvars |
qtype, tag
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.
|
Type.MethodType |
asMethodType()
The underlying method type of this type.
|
void |
complete()
Complete loading all classes in this type.
|
boolean |
contains(Type elem)
Does this type contain occurrences of type t?
|
TypeKind |
getKind()
Returns the
kind of this type. |
List<Type> |
getTypeArguments()
Access methods.
|
List<Type.TypeVar> |
getTypeVariables()
Returns the type variables declared by the formal type parameters
of this executable.
|
boolean |
isErroneous()
Does this type contain "error" elements?
|
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.
|
allparams, getEnclosingType, getParameterTypes, getReceiverType, getReturnType, getTag, getThrownTypes, getUpperBound
annotatedType, argtypes, asElement, baseType, baseTypes, constType, constValue, contains, containsAny, containsAny, equals, filter, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getLowerBound, getModelType, getModelTypes, getOriginalType, hashCode, hasTag, isAnnotated, isCompound, isErroneous, isExtendsBound, isFalse, isFinal, isInterface, isNullOrReference, isNumeric, isParameterized, isPartial, isPrimitive, isPrimitiveOrVoid, isRaw, isReference, isSuperBound, isTrue, isUnbound, map, stringValue, toString, unannotatedType, withTypeVar
getAttribute, getInheritedAnnotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameterTypes, getReceiverType, getReturnType, getThrownTypes
equals, hashCode
getAnnotation, getAnnotationMirrors, getAnnotationsByType
public <R,S> R accept(Type.Visitor<R,S> v, S s)
public String toString()
Type
toString
in interface TypeMirror
toString
in class Type.DelegatedType
public List<Type> getTypeArguments()
Type
getTypeArguments
in class Type.DelegatedType
public boolean isErroneous()
Type
isErroneous
in class Type.DelegatedType
public Type map(Type.Mapping f)
Type
public boolean contains(Type elem)
Type
public Type.MethodType asMethodType()
Type
asMethodType
in class Type
public void complete()
Type
public List<Type.TypeVar> getTypeVariables()
ExecutableType
getTypeVariables
in interface ExecutableType
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.