|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CType
org.multijava.mjc.CNumericType
org.jmlspecs.checker.JmlNumericType
This class represents the JML primitive numeric types bigint and real.
CNumericType| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjc.CType |
CType.MethodSignature, CType.MethodSignatureParser, CType.StringBuffers, CType.TupleCollection |
| Field Summary |
| Fields inherited from class org.multijava.mjc.CType |
EMPTY, instance, isMethodTypeVariable, isTypeVariable, type |
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Fields inherited from interface org.multijava.mjc.Constants |
ACC_PURE, AMID_JAVA_MATH, AMID_MAX, AMID_SAFE_MATH, CMP_VERSION, JAV_ASSERTION_ERROR, JAV_CLASS, JAV_CLASSLOADER, JAV_CLASSNOTFOUND_EXCEPTION, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_NOCLASSDEFFOUND_ERROR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RMJ_RUNTIME_EXCEPTION, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_SERIALIZABLE, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_SUPER, JAV_THIS, JAV_THROWABLE, MJ_ANCHOR, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LAND, OPE_LE, OPE_LNOT, OPE_LOR, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_MAX, TID_SHORT, TID_VOID, UNIV_ARRAY_TMP, UNIV_TMP |
| Constructor Summary | |
protected |
JmlNumericType(int typeID)
Constructor |
| Method Summary | |
void |
appendSignature(FastStringBuffer buff)
Transforms this type to a string |
String |
getSignature()
Transforms this type to a string |
int |
getSize()
Returns the size used in stack by value of this type |
boolean |
isFloatingPoint()
Check if this type is a floating point type. |
boolean |
isOrdinal()
Check if this type is an integral type. |
protected boolean |
isValidNumericTypeID(int typeID)
|
CType |
javaType()
Returns the Java type that will be used to represent values of this type. |
String |
toString()
Transforms this type to a string |
boolean |
widening_primitive_conv_from(CType from)
Returns true iff from type can be converted by widening
primitive conversion to this type. |
| Methods inherited from class org.multijava.mjc.CNumericType |
binaryPromote, checkType, genCastTo, implicitlyCastTo, isAlwaysAssignableTo, isCastableTo, isCodedAsInt, isNumeric, resolveValueType, unaryPromote, unifyNumeric |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JmlNumericType(int typeID)
typeID - the ident (int value) of this type| Method Detail |
protected boolean isValidNumericTypeID(int typeID)
isValidNumericTypeID in class CNumericTypepublic String toString()
toString in class CNumericTypepublic CType javaType()
this type.
public String getSignature()
getSignature in class CNumericTypepublic void appendSignature(FastStringBuffer buff)
appendSignature in interface CTypeSignatureAppenderappendSignature in class CNumericTypepublic int getSize()
getSize in class CNumericTypepublic boolean isOrdinal()
isOrdinal in class CNumericTypepublic boolean isFloatingPoint()
isFloatingPoint in class CNumericTypepublic boolean widening_primitive_conv_from(CType from)
from type can be converted by widening
primitive conversion to this type.
widening_primitive_conv_from in class CNumericType
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||