|
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.IntegerType
This is a type class for 16 bit integral types. There are seven
different types, namely int, char, short, byte, boolean,
const short, const byte
abbreviated I, C, S, B, Z, cS,
cB
. cB
and cS
specify constant
ints whose value is in byte resp. short range. They may be
converted to B resp. S, but sometimes need an explicit cast.
Field Summary | |
static int |
IT_B
|
static int |
IT_C
|
static int |
IT_cB
|
static int |
IT_cS
|
static int |
IT_I
|
static int |
IT_S
|
static int |
IT_Z
|
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 | |
IntegerType(int types)
Create a new type with the given type. |
|
IntegerType(int types,
int hints)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Type |
getCanonic()
Returns the canonic type of this type set. |
java.lang.String |
getDefaultName()
Generates the default name, that is the `natural' choice for local of this type. |
java.lang.Object |
getDefaultValue()
Generates the default value, that is the initial value of a field of this type. |
Type |
getHint()
Returns the hint type of this type set. |
Type |
getSubType()
The sub types of this type. |
Type |
getSuperType()
The super types of this type. |
java.lang.Class |
getTypeClass()
Returns the java.lang.Class representing this type. |
java.lang.String |
getTypeSignature()
Returns the type signature of this type. |
Type |
intersection(Type type)
Intersect this type with another type and return the new type. |
boolean |
isOfType(Type type)
Check if this and <unknown -- type&rt; are not disjunct. |
boolean |
isSubtypeOf(Type type)
Returns true, if this is a sub type of type. |
boolean |
isValidType()
Checks if this type represents a valid type instead of a list of minimum types. |
java.lang.String |
toString()
Returns a string representation describing this type set. |
Methods inherited from class net.sf.jode.type.Type |
getCastHelper, getTypeCode, isClassType, isSubTypeOf, maybeSubTypeOf, stackSize, tArray, tClass, tClass, tMethod, tRange, tSubType, tSuperType, tSystemClass, tType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int IT_Z
public static final int IT_I
public static final int IT_C
public static final int IT_S
public static final int IT_B
public static final int IT_cS
public static final int IT_cB
Constructor Detail |
public IntegerType(int types)
public IntegerType(int types, int hints)
Method Detail |
public Type getHint()
Type
tError
or tUnknown
, and may lead
to errors for certain range types.
getHint
in class Type
public Type getCanonic()
Type
getCanonic
in class Type
public Type getSubType()
Type
getSubType
in class Type
public Type getSuperType()
Type
getSuperType
in class Type
public boolean isValidType()
isValidType
in class Type
public boolean isSubtypeOf(Type type)
public boolean isOfType(Type type)
isOfType
in class Type
type
- a simple type; this mustn't be a range type.
public java.lang.String getDefaultName()
Type
getDefaultName
in class Type
public java.lang.Object getDefaultValue()
Type
getDefaultValue
in class Type
public java.lang.String getTypeSignature()
Type
getTypeSignature
in class Type
public java.lang.Class getTypeClass()
Type
getTypeClass
in class Type
public java.lang.String toString()
Type
toString
in class Type
public Type intersection(Type type)
intersection
in class Type
type
- the other type.
public boolean equals(java.lang.Object o)
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |