public final class FunctionCall extends AbstractProtelisAST<java.lang.Object>
| Constructor and Description |
|---|
FunctionCall(Metadata metadata,
FunctionDefinition functionDefinition,
java.util.List<ProtelisAST<?>> args) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(ExecutionContext context)
Evaluates this AST node.
|
Bytecode |
getBytecode() |
FunctionDefinition |
getFunctionDefinition() |
java.lang.String |
getName() |
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringFor, toStringpublic FunctionCall(Metadata metadata, FunctionDefinition functionDefinition, java.util.List<ProtelisAST<?>> args)
metadata - A Metadata object containing information about the code that generated this AST node.functionDefinition - the definition of the functionargs - the arguments. Must be in the same number of the
FunctionDefinition's expected argumentspublic java.lang.Object evaluate(ExecutionContext context)
AbstractProtelisASTAbstractProtelisAST takes care of storing the necessary metadata.evaluate in class AbstractProtelisAST<java.lang.Object>context - the execution contextpublic FunctionDefinition getFunctionDefinition()
FunctionDefinitionpublic java.lang.String getName()
AbstractProtelisASTgetName in interface ProtelisAST<java.lang.Object>getName in class AbstractProtelisAST<java.lang.Object>