|
||||||||||
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 Type
translate
in class Type_c
c
- 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 Type
toString
in class Type_c
public boolean equalsImpl(TypeObject t)
TypeObject
t
.
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 TypeObject
equalsImpl
in class TypeObject_c
public int hashCode()
public boolean isCanonical()
TypeObject
isCanonical
in interface TypeObject
isCanonical
in class Type_c
public boolean isNull()
Type
isNull
in interface Type
isNull
in class Type_c
public NullType toNull()
Type
toNull
in interface Type
toNull
in class Type_c
public boolean descendsFromImpl(Type ancestor)
Type
ancestor
.
descendsFromImpl
in interface Type
descendsFromImpl
in class Type_c
public boolean isImplicitCastValidImpl(Type toType)
Type
toType
.
isImplicitCastValidImpl
in interface Type
isImplicitCastValidImpl
in class Type_c
public boolean isCastValidImpl(Type toType)
isCastValidImpl
in interface Type
isCastValidImpl
in class Type_c
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |