|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.javac.code.Type
com.sun.tools.javac.code.Type.ClassType
public static class Type.ClassType
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.tools.javac.code.Type |
---|
Type.ArrayType, Type.BottomType, Type.CapturedType, Type.ClassType, Type.DelegatedType, Type.ErasedClassType, Type.ErrorType, Type.ForAll, Type.JCNoType, Type.Mapping, Type.MethodType, Type.PackageType, Type.TypeVar, Type.UndetVar, Type.Visitor<R,S>, Type.WildcardType |
Field Summary | |
---|---|
List<Type> |
allparams_field
A cache variable for the type parameters of this type, appended to all parameters of its enclosing class. |
List<Type> |
interfaces_field
The interfaces of this class (to be set once class is loaded). |
private Type |
outer_field
The enclosing type of this type. |
(package private) int |
rank_field
A cache for the rank. |
Type |
supertype_field
The supertype of this class (to be set once class is loaded). |
List<Type> |
typarams_field
The type parameters of this type (to be set once class is loaded). |
Fields inherited from class com.sun.tools.javac.code.Type |
---|
moreInfo, noType, tag, tsym |
Constructor Summary | |
---|---|
Type.ClassType(Type outer,
List<Type> typarams,
Symbol.TypeSymbol tsym)
|
Method Summary | ||
---|---|---|
|
accept(Type.Visitor<R,S> v,
S s)
|
|
|
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). |
|
private java.lang.String |
className(Symbol sym,
boolean longform)
|
|
void |
complete()
Complete loading all classes in this type. |
|
Type |
constType(java.lang.Object constValue)
Define a constant type, of the same kind as this type and with given constant value |
|
boolean |
contains(Type elem)
Does this type contain occurrences of type t? |
|
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. |
|
List<Type> |
getTypeArguments()
Access methods. |
|
boolean |
hasErasedSupertypes()
|
|
boolean |
isErroneous()
Does this type contain "error" elements? |
|
boolean |
isParameterized()
Is this type parameterized? A class type is parameterized if it has some parameters. |
|
boolean |
isRaw()
A class type is raw if it misses some of its type parameter sections. |
|
Type |
map(Type.Mapping f)
map a type function over all immediate descendants of this type |
|
void |
setEnclosingType(Type outer)
|
|
java.lang.String |
toString()
The Java source which this type represents. |
Methods inherited from class com.sun.tools.javac.code.Type |
---|
argtypes, asElement, asMethodType, baseType, baseTypes, clone, constValue, contains, containsSome, equals, getLowerBound, getParameterTypes, getReturnType, getThrownTypes, getUpperBound, hashCode, isCompound, isErroneous, isExtendsBound, isFalse, isInterface, isPrimitive, isSuperBound, isTrue, isUnbound, map, setThrown, stringValue, toString, withTypeVar |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.lang.model.type.DeclaredType |
---|
asElement |
Methods inherited from interface javax.lang.model.type.TypeMirror |
---|
equals, hashCode |
Field Detail |
---|
private Type outer_field
public List<Type> typarams_field
public List<Type> allparams_field
allparams()
public Type supertype_field
public List<Type> interfaces_field
int rank_field
Constructor Detail |
---|
public Type.ClassType(Type outer, List<Type> typarams, Symbol.TypeSymbol tsym)
Method Detail |
---|
public <R,S> R accept(Type.Visitor<R,S> v, S s)
accept
in class Type
public Type constType(java.lang.Object constValue)
Type
constType
in class Type
public java.lang.String toString()
toString
in interface TypeMirror
toString
in class Type
private java.lang.String className(Symbol sym, boolean longform)
public List<Type> getTypeArguments()
Type
getTypeArguments
in interface DeclaredType
getTypeArguments
in class Type
public boolean hasErasedSupertypes()
public Type getEnclosingType()
DeclaredType
NoType
of kind NONE
if there is no enclosing
instance. Only types corresponding to inner classes have an
enclosing instance.
getEnclosingType
in interface DeclaredType
getEnclosingType
in class Type
public void setEnclosingType(Type outer)
public List<Type> allparams()
Type
allparams
in class Type
public boolean isErroneous()
Type
isErroneous
in class Type
public boolean isParameterized()
Type
isParameterized
in class Type
public boolean isRaw()
isRaw
in class Type
public Type map(Type.Mapping f)
Type
map
in class Type
public boolean contains(Type elem)
Type
contains
in class Type
public void complete()
Type
complete
in class Type
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 visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |