|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
polyglot.ext.jl.types.Type_c
polyglot.ext.jl.types.NullType_c
A NullType represents the type of the Java keyword
null.
| Field Summary |
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
position, ts |
| Constructor Summary | |
protected |
NullType_c()
Used for deserializing types. |
|
NullType_c(TypeSystem ts)
|
| Method Summary | |
boolean |
descendsFromImpl(Type ancestor)
Return true if this type descends from ancestor. |
boolean |
equalsImpl(TypeObject t)
Return true iff this type object is the same as t. |
int |
hashCode()
|
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
boolean |
isCastValidImpl(Type toType)
Requires: all type arguments are canonical. |
boolean |
isImplicitCastValidImpl(Type toType)
Return true if a value of this type can be assigned to a variable of type toType. |
boolean |
isNull()
Return true if a null type. |
NullType |
toNull()
Cast the type to a null type, or null. |
java.lang.String |
toString()
Yields a string representing this type. |
java.lang.String |
translate(Resolver c)
Return a string into which to translate the type. |
| Methods inherited from class polyglot.ext.jl.types.Type_c |
arrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNumeric, isPackage, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isType, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toPackage, toPrimitive, toReference, toType |
| Methods inherited from class polyglot.ext.jl.types.TypeObject_c |
copy, equals, position, typeSystem |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.types.Type |
arrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toPrimitive, toReference |
| Methods inherited from interface polyglot.types.Qualifier |
isPackage, isType, toPackage, toType |
| Methods inherited from interface polyglot.types.TypeObject |
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Constructor Detail |
protected NullType_c()
public NullType_c(TypeSystem ts)
| Method Detail |
public java.lang.String translate(Resolver c)
Type
translate in interface Typetranslate in class Type_cc - A resolver in which to lookup this type to determine if
the type is unique in the given resolver.public java.lang.String toString()
Type
toString in interface TypetoString in class Type_cpublic boolean equalsImpl(TypeObject t)
TypeObjectt.
All Polyglot extensions should attempt to maintain pointer
equality between TypeObjects. If this cannot be done,
extensions can override TypeObject_c.equalsImpl(), and
don't forget to override hashCode().
equalsImpl in interface TypeObjectequalsImpl in class TypeObject_cpublic int hashCode()
public boolean isCanonical()
TypeObject
isCanonical in interface TypeObjectisCanonical in class Type_cpublic boolean isNull()
Type
isNull in interface TypeisNull in class Type_cpublic NullType toNull()
Type
toNull in interface TypetoNull in class Type_cpublic boolean descendsFromImpl(Type ancestor)
Typeancestor.
descendsFromImpl in interface TypedescendsFromImpl in class Type_cpublic boolean isImplicitCastValidImpl(Type toType)
TypetoType.
isImplicitCastValidImpl in interface TypeisImplicitCastValidImpl in class Type_cpublic boolean isCastValidImpl(Type toType)
isCastValidImpl in interface TypeisCastValidImpl in class Type_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||