|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.type.Type
net.sf.jode.type.ReferenceType
net.sf.jode.type.NullType
This class represents the NullType. The null type is special as it
may only occur as top type in a range type. It represents the type
of the null constant, which may be casted to any object.
Question: Should we replace tUObject = tRange(tObject, tNull) by tNull?
Question2: if not, should null have type tNull?
Field Summary |
Fields inherited from class net.sf.jode.type.Type |
EMPTY_IFACES, tBoolByte, tBoolean, tBoolInt, tBoolUInt, tByte, TC_ARRAY, TC_BOOLEAN, TC_BYTE, TC_CHAR, TC_CLASS, TC_CLASSIFACE, TC_DOUBLE, TC_ERROR, TC_FLOAT, TC_INT, TC_INTEGER, TC_LONG, TC_METHOD, TC_NULL, TC_RANGE, TC_SHORT, TC_SYSCLASS, TC_UNKNOWN, TC_VOID, tChar, tCloneable, tComparable, tDouble, tError, tFloat, tInt, tJavaLangClass, tLong, tNull, tObject, tSerializable, tShort, tString, tStringBuffer, tStringBuilder, tUInt, tUnknown, tUObject, tVoid |
Constructor Summary | |
NullType()
|
Method Summary | |
Type |
createRangeType(ReferenceType bottomType)
Creates a range type set of this and bottom. |
Type |
findCommonClassTypes(java.util.Stack otherTypes)
|
Type |
getGeneralizedType(Type type)
Returns the generalized type of this and type. |
Type |
getSpecializedType(Type type)
Returns the specialized type of this and type. |
Type |
getSubType()
The sub types of this type. |
java.lang.String |
toString()
Returns a string representation describing this type set. |
Methods inherited from class net.sf.jode.type.ReferenceType |
getSuperType, implementsAllIfaces, intersection |
Methods inherited from class net.sf.jode.type.Type |
getCanonic, getCastHelper, getDefaultName, getDefaultValue, getHint, getTypeClass, getTypeCode, getTypeSignature, isClassType, isOfType, isSubTypeOf, isValidType, maybeSubTypeOf, stackSize, tArray, tClass, tClass, tMethod, tRange, tSubType, tSuperType, tSystemClass, tType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NullType()
Method Detail |
public Type getSubType()
Type
getSubType
in class ReferenceType
public Type createRangeType(ReferenceType bottomType)
ReferenceType
createRangeType
in class ReferenceType
bottomType
- the bottom type.
public Type getGeneralizedType(Type type)
getGeneralizedType
in class ReferenceType
type
- the other type.
public Type getSpecializedType(Type type)
getSpecializedType
in class ReferenceType
type
- the other type.
public java.lang.String toString()
Type
toString
in class Type
public Type findCommonClassTypes(java.util.Stack otherTypes)
findCommonClassTypes
in class ReferenceType
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |