Package com.nt.udc.io

Class COSARExprTimeNow

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

public class COSARExprTimeNow extends COSARExpr
This class represents the operation returning the current time in milliseconds since Jan 1, 1970.
  • Field Details

  • 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