coins.ast.expr
Class FloatConstantExpr

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.expr.ConstantExpr
          extended bycoins.ast.expr.FloatConstantExpr
All Implemented Interfaces:
Expr, java.io.Serializable, TypeId

public class FloatConstantExpr
extends ConstantExpr

Constant class of floating type.

See Also:
Serialized Form

Field Summary
(package private)  double fValue
           
 
Fields inherited from class coins.ast.expr.ConstantExpr
fType
 
Fields inherited from interface coins.ast.TypeId
ARRAY_T, CHAR_T, CONST_T, DOUBLE_T, ELLIPSIS_T, ENUM_BEGIN, ENUM_END, FLOAT_T, FUNCTION_T, INT_T, LONG_DOUBLE_T, LONG_LONG_T, LONG_T, NO_DIMENSION_T, OFFSET_T, POINTER_T, RESTRICT_T, RETURN_T, S_AUTO, S_EXTERN, S_INLINE, S_NONE, S_REGISTER, S_STATIC, SHORT_T, SIGNED_T, SIZE_T, STRUCT_BEGIN, STRUCT_END, UNION_BEGIN, UNION_END, UNSIGNED_T, VOID_T, VOLATILE_T
 
Constructor Summary
FloatConstantExpr(double value, char type)
           
 
Method Summary
 double doubleValue()
           
 char getSignChar()
           
 char getTypeChar()
           
 long longValue()
           
 java.lang.String toString()
           
 
Methods inherited from class coins.ast.expr.ConstantExpr
accept, getLeft, getRight, getType, setLeft, setRight
 
Methods inherited from class coins.ast.ASTree
getTag, putSeparator, rightToString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fValue

double fValue
Constructor Detail

FloatConstantExpr

public FloatConstantExpr(double value,
                         char type)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class ASTree

longValue

public long longValue()
Specified by:
longValue in class ConstantExpr

doubleValue

public double doubleValue()
Specified by:
doubleValue in class ConstantExpr

getSignChar

public char getSignChar()
Specified by:
getSignChar in class ConstantExpr

getTypeChar

public char getTypeChar()
Specified by:
getTypeChar in class ConstantExpr