Package com.nt.udc.io

Class COSARExprTest

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

public class COSARExprTest extends COSARExpr
This class represents the "if" statement.
  • Field Details

    • m_result

      protected COSARExpr m_result
    • m_cond

      protected COSARExpr m_cond
      These members represent the operands.
    • m_exprTrue

      protected COSARExpr m_exprTrue
    • m_exprFalse

      protected COSARExpr m_exprFalse
  • Constructor Details

  • Method Details

    • eval

      public COSARAttr eval(HashMap symbols) throws Exception
      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
      Throws:
      Exception
    • toString

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