Package com.nt.udc.io

Class COSARExprDouble

java.lang.Object
com.nt.udc.io.COSARExpr
com.nt.udc.io.COSARExprDouble

public class COSARExprDouble extends COSARExpr
This class represents a double constant.
  • Field Details

  • Constructor Details

    • COSARExprDouble

      public COSARExprDouble(double value) throws Exception
      Throws:
      Exception
  • Method Details

    • eval

      public COSARAttr eval(HashMap symbols)
      Description copied from class: COSARExpr
      This function is used to evaluate the expression. A symbol table is passed to help in retrieving the value of referenced symbols. The HashMap should contain values stored as COSARAttr objects, keyed by their associated symbol's name.
      Overrides:
      eval in class COSARExpr
      Returns:
      The expression's value
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      A string representation of the OSAR expression