public abstract class JL5ClassType_c extends ClassType_c implements JL5ClassType
ClassType.Kind
decl, memberCache
position, ts
Modifier | Constructor and Description |
---|---|
protected |
JL5ClassType_c() |
|
JL5ClassType_c(JL5TypeSystem ts) |
|
JL5ClassType_c(JL5TypeSystem ts,
Position pos) |
Modifier and Type | Method and Description |
---|---|
EnumInstance |
enumConstantNamed(java.lang.String name) |
abstract java.util.List<EnumInstance> |
enumConstants() |
boolean |
isCastValidImpl(Type toType)
Requires: all type arguments are canonical.
|
java.util.LinkedList<Type> |
isImplicitCastValidChainImpl(Type toType)
Return a chain of types that show that this class can be implicitly cast
to toType.
|
boolean |
isImplicitCastValidImpl(Type toType)
Return true if a value of this type can be assigned to a variable of
type
toType . |
java.lang.String |
translate(Resolver c)
Return a string into which to translate the type.
|
constructors, container, copy, declaration, descendsFromImpl, fieldNamed, fields, flags, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, interfaces, isAnonymous, isCanonical, isClass, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, job, kind, memberClasses, memberClassNamed, members, methods, name, outer, package_, print, resolver, setDeclaration, superType, toClass, toString
hasMethod, hasMethodImpl, isReference, methods, methodsNamed, toReference
arrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPackage, isPrimitive, isShort, isSubtype, isSubtypeImpl, isType, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toNull, toPackage, toPrimitive, toType, typeEquals, typeEqualsImpl
equals, equalsImpl, hashCode, position, typeSystem
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotationElemNamed, annotationElems, annotations, isRawClass, superclasses, translateAsReceiver
constructors, fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, inStaticContext, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, kind, memberClasses, memberClassNamed, outer, resolver
package_
fields, hasMethod, hasMethodImpl, interfaces, members, methods, methods, methodsNamed, superType
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, print, toArray, toClass, toNull, toPrimitive, toReference, toString, typeEquals, typeEqualsImpl
equalsImpl, isCanonical, position, typeSystem
container, flags, setContainer, setFlags
declaration, setDeclaration
protected JL5ClassType_c()
public JL5ClassType_c(JL5TypeSystem ts)
public JL5ClassType_c(JL5TypeSystem ts, Position pos)
public abstract java.util.List<EnumInstance> enumConstants()
enumConstants
in interface JL5ClassType
public EnumInstance enumConstantNamed(java.lang.String name)
enumConstantNamed
in interface JL5ClassType
public boolean isCastValidImpl(Type toType)
ReferenceType_c
isCastValidImpl
in interface Type
isCastValidImpl
in class ClassType_c
public boolean isImplicitCastValidImpl(Type toType)
Type
toType
.isImplicitCastValidImpl
in interface Type
isImplicitCastValidImpl
in class ClassType_c
public java.util.LinkedList<Type> isImplicitCastValidChainImpl(Type toType)
JL5ClassType
isImplicitCastValidChainImpl
in interface JL5ClassType
public java.lang.String translate(Resolver c)
Type
translate
in interface Type
translate
in class ClassType_c
c
- A resolver in which to lookup this type to determine if
the type is unique in the given resolver.