|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.types.TypeObject_c
polyglot.types.Type_c
polyglot.types.ReferenceType_c
polyglot.types.ClassType_c
polyglot.types.ParsedClassType_c
polyglot.ext.pao.types.PaoParsedClassType_c
public class PaoParsedClassType_c
A PAO class type. This class overrides the method
isCastValidImpl(Type)
to allow casting from
Object
to primitives.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface polyglot.types.ClassType |
---|
ClassType.Kind |
Field Summary |
---|
Fields inherited from class polyglot.types.ParsedClassType_c |
---|
constructors, fields, flags, fromSource, init, inStaticContext, interfaces, job, kind, memberClasses, methods, name, needSerialization, outer, package_, superType |
Fields inherited from class polyglot.types.ClassType_c |
---|
decl, memberCache |
Fields inherited from class polyglot.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 if normal casting rules permit this cast, or
if this ClassType is Object and the
toType is a primitive. |
Methods inherited from class polyglot.types.ParsedClassType_c |
---|
addConstructor, addField, addInterface, addMemberClass, addMethod, constructors, defaultConstructorNeeded, fieldNamed, fields, flags, flags, fromSource, init, initializer, inStaticContext, inStaticContext, interfaces, job, kind, kind, memberClasses, membersAdded, methods, methodsNamed, name, name, needSerialization, needSerialization, numSignaturesUnresolved, outer, outer, package_, package_, position, setConstructors, setContainer, setFields, setFlags, setInit, setInitializer, setInterfaces, setJob, setMemberClasses, setMembersAdded, setMethods, setSignaturesResolved, setSupertypesResolved, signaturesResolved, superType, superType, supertypesResolved, toString |
Methods inherited from class polyglot.types.ClassType_c |
---|
container, copy, declaration, descendsFromImpl, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isCanonical, isClass, isEnclosed, isEnclosedImpl, isImplicitCastValidImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, memberClassNamed, members, print, resolver, setDeclaration, toClass, translate |
Methods inherited from class polyglot.types.ReferenceType_c |
---|
hasMethod, hasMethodImpl, isReference, methods, toReference |
Methods inherited from class polyglot.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, typeEquals, typeEqualsImpl |
Methods inherited from class polyglot.types.TypeObject_c |
---|
equals, equalsImpl, hashCode, position, typeSystem |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface polyglot.types.ClassType |
---|
hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, memberClassNamed, resolver |
Methods inherited from interface polyglot.types.Named |
---|
fullName |
Methods inherited from interface polyglot.types.ReferenceType |
---|
hasMethod, hasMethodImpl, members, methods |
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, print, toArray, toClass, toNull, toPrimitive, toReference, translate, typeEquals, typeEqualsImpl |
Methods inherited from interface polyglot.types.Qualifier |
---|
isPackage, isType, toPackage, toType |
Methods inherited from interface polyglot.types.MemberInstance |
---|
container |
Methods inherited from interface polyglot.types.Declaration |
---|
declaration, setDeclaration |
Constructor Detail |
---|
protected PaoParsedClassType_c()
public PaoParsedClassType_c(TypeSystem ts, LazyClassInitializer init, Source fromSource)
Method Detail |
---|
public boolean isCastValidImpl(Type toType)
true
if normal casting rules permit this cast, or
if this ClassType
is Object
and the
toType
is a primitive.
isCastValidImpl
in interface Type
isCastValidImpl
in class ClassType_c
ClassType_c.isCastValidImpl(Type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |