public static class Type.ErrorType extends Type.ClassType implements ErrorType
Type.ArrayType, Type.BottomType, Type.CapturedType, Type.ClassType, Type.DelegatedType, Type.ErrorType, Type.ForAll, Type.JCNoType, Type.Mapping, Type.MethodType, Type.PackageType, Type.TypeVar, Type.UndetVar, Type.Visitor<R,S>, Type.WildcardTypeallparams_field, interfaces_field, rank_field, supertype_field, typarams_field| Constructor and Description |
|---|
Type.ErrorType() |
Type.ErrorType(Name name,
Symbol.TypeSymbol container) |
Type.ErrorType(Symbol.ClassSymbol c) |
| 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.
|
List<Type> |
allparams()
Return all parameters of this type and all its outer types in order
outer (first) to inner (last).
|
Type |
asSub(Symbol sym) |
Type |
constType(Object constValue)
Define a constant type, of the same kind as this type
and with given constant value
|
Type |
getEnclosingType()
Returns the type of the innermost enclosing instance or a
NoType of kind NONE if there is no enclosing
instance. |
TypeKind |
getKind()
Returns the
kind of this type. |
Type |
getReturnType() |
List<Type> |
getTypeArguments()
Access methods.
|
boolean |
isErroneous()
Does this type contain "error" elements?
|
boolean |
isGenType(Type t) |
Type |
map(Type.Mapping f)
map a type function over all immediate descendants of this type
|
complete, contains, isParameterized, isRaw, setEnclosingType, toStringargtypes, asElement, asMethodType, baseType, baseTypes, clone, constValue, contains, containsSome, equals, getLowerBound, getParameterTypes, getThrownTypes, getUpperBound, hashCode, isCompound, isErroneous, isExtendsBound, isFalse, isInterface, isPrimitive, isSuperBound, isTrue, isUnbound, map, removeBounds, removeBounds, setThrown, stringValue, toString, withTypeVarfinalize, getClass, notify, notifyAll, wait, wait, waitasElementequals, hashCode, toStringpublic Type.ErrorType()
public Type.ErrorType(Symbol.ClassSymbol c)
public Type.ErrorType(Name name, Symbol.TypeSymbol container)
public <R,S> R accept(Type.Visitor<R,S> v, S s)
accept in class Type.ClassTypepublic Type constType(Object constValue)
TypeconstType in class Type.ClassTypepublic Type getEnclosingType()
DeclaredTypeNoType of kind NONE if there is no enclosing
instance. Only types corresponding to inner classes have an
enclosing instance.getEnclosingType in interface DeclaredTypegetEnclosingType in class Type.ClassTypepublic Type getReturnType()
getReturnType in class Typepublic Type map(Type.Mapping f)
Typemap in class Type.ClassTypepublic boolean isErroneous()
TypeisErroneous in class Type.ClassTypepublic List<Type> allparams()
Typeallparams in class Type.ClassTypepublic List<Type> getTypeArguments()
TypegetTypeArguments in interface DeclaredTypegetTypeArguments in class Type.ClassTypepublic TypeKind getKind()
TypeMirrorkind of this type.getKind in interface TypeMirrorgetKind in class Type.ClassTypepublic <R,P> R accept(TypeVisitor<R,P> v, P p)
TypeMirroraccept in interface TypeMirroraccept in class Type.ClassTypeR - 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 visitor