Package org.openl.rules.tbasic.compile
Class AlgorithmFunctionCompiler
- java.lang.Object
-
- org.openl.rules.tbasic.compile.AlgorithmFunctionCompiler
-
public class AlgorithmFunctionCompiler extends Object
TheAlgorithmFunctionCompilerclass describes some function and serves for compiling and checking it.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmFunctionCompiler(List<AlgorithmTreeNode> functionBody, CompileContext compileContext, AlgorithmFunction method, AlgorithmCompiler compiler)Create an instance ofAlgorithmFunctionCompiler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompile(IBindingContext bindingContext)Compile body of function.IOpenClassgetReturnType()voidpostprocess()Finalize compilation of function.
-
-
-
Constructor Detail
-
AlgorithmFunctionCompiler
public AlgorithmFunctionCompiler(List<AlgorithmTreeNode> functionBody, CompileContext compileContext, AlgorithmFunction method, AlgorithmCompiler compiler)
Create an instance ofAlgorithmFunctionCompiler.- Parameters:
functionBody- Code of function.compileContext- Context of function.method- Description of function.compiler- Main algorithm compiler.
-
-
Method Detail
-
compile
public void compile(IBindingContext bindingContext)
Compile body of function.- Throws:
Exception- If code of function has errors.
-
getReturnType
public IOpenClass getReturnType()
-
postprocess
public void postprocess()
Finalize compilation of function.
-
-