public final class RuntimeCall extends Object implements ExpressionNode
RuntimeCall
is a special expression which provides access to utility functions from the runtime.Constructor and Description |
---|
RuntimeCall(String functionName,
ExpressionNode... arguments)
Creates a
RuntimeCall based on a functionName and an array of arguments . |
RuntimeCall(String functionName,
List<ExpressionNode> arguments)
Creates a
RuntimeCall based on a functionName and a list of arguments . |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
List<ExpressionNode> |
getArguments()
Get the nodes of the argument calls.
|
String |
getFunctionName()
Get the name of the runtime call.
|
public RuntimeCall(String functionName, ExpressionNode... arguments)
RuntimeCall
based on a functionName
and an array of arguments
.functionName
- the name of the function identifying the runtime callarguments
- the arguments passed to the runtime callpublic RuntimeCall(String functionName, List<ExpressionNode> arguments)
RuntimeCall
based on a functionName
and a list of arguments
.functionName
- the name of the function identifying the runtime callarguments
- the arguments passed to the runtime callpublic String getFunctionName()
public List<ExpressionNode> getArguments()
public <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorCopyright © 2017 The Apache Software Foundation. All rights reserved.