Package com.nt.udc.io

Class COSARExprFunc

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

public class COSARExprFunc extends COSARExpr
This class represents the custom function call.
  • Field Details

    • CALLBACK_KEY

      public static final String CALLBACK_KEY
      This constant represents the key used to store Callback implementors in the HashMap passed in for expression evaluation. It should be used by objects evaluating this expression.
      See Also:
    • OSAR_KEY

      public static final String OSAR_KEY
      This constant represents the key used to store an OSAR in the HashMap passed in for expression evaluation. It should be used by objects evaluating this expression.
      See Also:
    • m_funcName

      protected String m_funcName
      This members represents the function name.
    • m_args

      protected COSARExpr[] m_args
      This member represents the argument expressions.
    • m_values

      protected COSARAttr[] m_values
      This member represents the argument values.
  • 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