public class AlgorithmFunctionCompiler extends Object
AlgorithmFunctionCompiler class describes some function and serves for compiling and checking it.| Constructor and Description |
|---|
AlgorithmFunctionCompiler(List<AlgorithmTreeNode> functionBody,
CompileContext compileContext,
AlgorithmFunction method,
AlgorithmCompiler compiler)
Create an instance of
AlgorithmFunctionCompiler. |
| Modifier and Type | Method and Description |
|---|---|
void |
compile()
Compile body of function.
|
IOpenClass |
getReturnType() |
void |
postprocess()
Finalize compilation of function.
|
public AlgorithmFunctionCompiler(List<AlgorithmTreeNode> functionBody, CompileContext compileContext, AlgorithmFunction method, AlgorithmCompiler compiler)
AlgorithmFunctionCompiler.functionBody - Code of function.compileContext - Context of function.method - Description of function.compiler - Main algorithm compiler.public void compile()
throws Exception
Exception - If code of function has errors.public IOpenClass getReturnType()
public void postprocess()
Copyright © 2004–2019 OpenL Tablets. All rights reserved.