|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ext.jl.types.TypeObject_c polyglot.ext.jl.types.Type_c polyglot.ext.jl.types.NullType_c
public class 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)
Default implementation is pointer equality. |
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()
Returns a non-null iff isNull() returns true. |
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_c
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_c
toString
in interface Type
toString
in class Type_c
public boolean equalsImpl(TypeObject t)
TypeObject_c
equalsImpl
in interface TypeObject
equalsImpl
in class TypeObject_c
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
public int hashCode()
hashCode
in class TypeObject_c
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_c
toNull
in interface Type
toNull
in class Type_c
public boolean descendsFromImpl(Type ancestor)
Type_c
ancestor
.
descendsFromImpl
in interface Type
descendsFromImpl
in class Type_c
public boolean isImplicitCastValidImpl(Type toType)
Type_c
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 |