Class FunctionNode
- 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 Summary
Constructors Constructor Description FunctionNode(String name)
Constructs a function node without parameters.FunctionNode(String name, IParseNode... parameters)
Constructs a function node with one or more parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
This method returns the name of the function.IParseNode
getParameter(int index)
This method returns the parameter at the specified index.int
getParameterCount()
This method returns the number of parameters for the function.-
Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-