polyglot.ext.pao.types
Class PaoParsedClassType_c

java.lang.Object
  extended bypolyglot.ext.jl.types.TypeObject_c
      extended bypolyglot.ext.jl.types.Type_c
          extended bypolyglot.ext.jl.types.ReferenceType_c
              extended bypolyglot.ext.jl.types.ClassType_c
                  extended bypolyglot.ext.jl.types.ParsedClassType_c
                      extended bypolyglot.ext.pao.types.PaoParsedClassType_c
All Implemented Interfaces:
ClassType, java.lang.Cloneable, Copy, Importable, MemberInstance, Named, ParsedClassType, Qualifier, ReferenceType, java.io.Serializable, Type, TypeObject

public class PaoParsedClassType_c
extends ParsedClassType_c

A PAO class type. This class overrides type checking of casts to primitives.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class polyglot.types.ClassType
ClassType.Kind
 
Field Summary
 
Fields inherited from class polyglot.ext.jl.types.ParsedClassType_c
constructors, fields, flags, fromSource, init, inStaticContext, interfaces, kind, memberClasses, methods, name, outer, package_, superType
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Fields inherited from interface polyglot.types.ClassType
ANONYMOUS, LOCAL, MEMBER, TOP_LEVEL
 
Constructor Summary
protected PaoParsedClassType_c()
           
  PaoParsedClassType_c(TypeSystem ts, LazyClassInitializer init, Source fromSource)
           
 
Method Summary
 boolean isCastValidImpl(Type toType)
          Returns true iff a cast from this to toType is valid.
 
Methods inherited from class polyglot.ext.jl.types.ParsedClassType_c
addConstructor, addField, addInterface, addMemberClass, addMethod, constructors, fields, flags, flags, freeInit, fromSource, initialized, inStaticContext, inStaticContext, interfaces, kind, kind, memberClasses, methods, name, name, outer, outer, package_, package_, position, superType, superType
 
Methods inherited from class polyglot.ext.jl.types.ClassType_c
container, descendsFromImpl, fieldNamed, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isCanonical, isClass, isEnclosed, isEnclosedImpl, isImplicitCastValidImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, memberClassNamed, toClass, toString, translate
 
Methods inherited from class polyglot.ext.jl.types.ReferenceType_c
hasMethod, hasMethodImpl, isReference, methods, methodsNamed, toReference
 
Methods inherited from class polyglot.ext.jl.types.Type_c
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
 
Methods inherited from class polyglot.ext.jl.types.TypeObject_c
copy, equals, equalsImpl, position, typeSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.types.ClassType
fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, memberClassNamed
 
Methods inherited from interface polyglot.types.Named
fullName
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.types.ReferenceType
hasMethod, hasMethodImpl, methods, methodsNamed
 
Methods inherited from interface polyglot.types.Type
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toNull, toPrimitive, toReference, toString, translate
 
Methods inherited from interface polyglot.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface polyglot.types.MemberInstance
container
 

Constructor Detail

PaoParsedClassType_c

protected PaoParsedClassType_c()

PaoParsedClassType_c

public PaoParsedClassType_c(TypeSystem ts,
                            LazyClassInitializer init,
                            Source fromSource)
Method Detail

isCastValidImpl

public boolean isCastValidImpl(Type toType)
Returns true iff a cast from this to toType is valid.

Specified by:
isCastValidImpl in interface Type
Overrides:
isCastValidImpl in class ClassType_c