Class FunctionNode
java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.FunctionNode
- All Implemented Interfaces:
IParseNode
This class contains a parsed function call.
- Since:
- 6.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionNode
(String name) Constructs a function node without parameters.FunctionNode
(String name, IParseNode... parameters) Constructs a function node with one or more parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
This method returns the name of the function.getParameter
(int index) This method returns the parameter at the specified index.int
This method returns the number of parameters for the function.Methods inherited from class com.aquima.interactions.expressions.parser.ParseNodeBase
getEndPosition, getPosition, setPosition
-
Constructor Details
-
FunctionNode
Constructs a function node without parameters.- Parameters:
name
- The name of the function.
-
FunctionNode
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
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
This method returns the parameter at the specified index.- Parameters:
index
- The index of the parameter.- Returns:
- The parameter expression node.
-