Class CollectionNode

All Implemented Interfaces:
IParsedExpression, Node, Serializable

public class CollectionNode extends ExpressionNode
A node representing collection values to fill in.
See Also:
  • Constructor Details

    • CollectionNode

      public CollectionNode(jadex.javaparser.javaccimpl.ParserImpl p, int id)
      Create an expression node.
      Parameters:
      p - The parser.
      id - The id.
  • Method Details

    • precompile

      public void precompile()
      Precompute type, and perform checks.
      Overrides:
      precompile in class ExpressionNode
    • getValue

      public Object getValue(jadex.common.IValueFetcher fetcher)
      Evaluate the expression in the given state with respect to given parameters.
      Specified by:
      getValue in interface IParsedExpression
      Specified by:
      getValue in class ExpressionNode
      Parameters:
      params - The parameters (string, value pairs), if any.
      Returns:
      The value of the term.
    • toPlainString

      public String toPlainString()
      Create a string representation of this node and its subnodes.
      Specified by:
      toPlainString in interface Node
      Overrides:
      toPlainString in class ExpressionNode
      Returns:
      A string representation of this node.