java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.FunctionNode
All Implemented Interfaces:
IParseNode

public class FunctionNode extends ParseNodeBase
This class contains a parsed function call.
Since:
6.1
Author:
O. Kerpershoek
  • Constructor Details

    • FunctionNode

      public FunctionNode(String name)
      Constructs a function node without parameters.
      Parameters:
      name - The name of the function.
    • FunctionNode

      public FunctionNode(String name, IParseNode... parameters)
      Constructs a function node with one or more parameters.
      Parameters:
      name - The name of the function.
      parameters - The parameters for the function.
  • Method Details

    • getName

      public String getName()
      This method returns the name of the function.
      Returns:
      The name of the function.
    • getParameterCount

      public int getParameterCount()
      This method returns the number of parameters for the function.
      Returns:
      the number of parameters for the function.
    • getParameter

      public IParseNode getParameter(int index)
      This method returns the parameter at the specified index.
      Parameters:
      index - The index of the parameter.
      Returns:
      The parameter expression node.