Class ParameterNode

All Implemented Interfaces:
IParsedExpression, Node, Serializable

public class ParameterNode extends ExpressionNode
Parameter node representing a parameter. Parameter values are supplied at evaluation time.
See Also:
  • Constructor Details

    • ParameterNode

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

    • 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.
    • getUnboundParameterNodes

      public ParameterNode[] getUnboundParameterNodes()
      Get unbound parameter nodes.
      Overrides:
      getUnboundParameterNodes in class ExpressionNode
      Returns:
      The unbound parameter nodes.
    • equals

      public boolean equals(Object o)
      Test if two nodes are equal.
      Overrides:
      equals in class ExpressionNode
    • hashCode

      public int hashCode()
      Get the hash code for the node.
      Overrides:
      hashCode in class ExpressionNode