|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.CType
at.dms.kjc.CNumericType
at.dms.kjc.CDoubleType
public class CDoubleType
This class represents the Java type "double". There is only one instance of this type.
Field Summary |
---|
Fields inherited from class at.dms.kjc.CType |
---|
instance, type |
Fields inherited from class at.dms.util.Utils |
---|
EMPTY_LIST, getForLoopCallers |
Fields inherited from interface at.dms.kjc.Constants |
---|
CMP_VERSION, JAV_CLASS, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_THIS, JAV_THROWABLE, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LE, OPE_LNOT, 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_BIT, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_SHORT, TID_VECTOR, TID_VOID, VECTOR_EMPTY |
Constructor Summary | |
---|---|
CDoubleType()
Constructs a new instance. |
Method Summary | |
---|---|
protected void |
appendSignature(SimpleStringBuffer buffer)
Appends the VM signature of this type to the specified buffer. |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CDoubleType other)
Clones all fields of this into |
void |
genCastTo(CNumericType dest,
CodeSequence code)
Generates a bytecode sequence to convert a value of this type to the specified destination type. |
String |
getSignature()
Returns the VM signature of this type. |
int |
getSize()
Returns the stack size used by a value of this type. |
int |
getSizeInC()
Returns the stack size (conservative estimate of maximum number of bytes needed in C on 32-bit machine) used by a value of this type. |
boolean |
isAssignableTo(CType dest)
Can this type be converted to the specified type by assignment conversion (JLS 5.2) ? |
boolean |
isFloatingPoint()
Is this a floating point type ? |
boolean |
isOrdinal()
Is this type ordinal ? |
String |
toString()
Returns a string representation of this type. |
Methods inherited from class at.dms.kjc.CNumericType |
---|
binaryPromote, checkType, deepCloneInto, isCastableTo, isNumeric, unaryPromote |
Methods inherited from class at.dms.kjc.CType |
---|
checked, deepCloneInto, equals, genMethodSignature, getArrayLoadOpcode, getArrayStoreOpcode, getCClass, getLoadOpcode, getReturnOpcode, getStoreOpcode, getTypeID, isArrayType, isCheckedException, isClassType, isPrimitive, isReference, parseMethodSignature, parseSignature |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CDoubleType()
Method Detail |
---|
public String toString()
toString
in class CNumericType
public String getSignature()
getSignature
in class CNumericType
protected void appendSignature(SimpleStringBuffer buffer)
appendSignature
in class CNumericType
public int getSizeInC()
getSizeInC
in class CNumericType
public int getSize()
getSize
in class CNumericType
public boolean isOrdinal()
isOrdinal
in class CNumericType
public boolean isFloatingPoint()
isFloatingPoint
in class CNumericType
public boolean isAssignableTo(CType dest)
isAssignableTo
in class CNumericType
dest
- the destination type
public void genCastTo(CNumericType dest, CodeSequence code)
genCastTo
in class CNumericType
dest
- the destination typecode
- the code sequencepublic Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class CNumericType
protected void deepCloneInto(CDoubleType other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |