Class AlgorithmFunctionCompiler


  • public class AlgorithmFunctionCompiler
    extends Object
    The AlgorithmFunctionCompiler class describes some function and serves for compiling and checking it.
    • Constructor Detail

      • AlgorithmFunctionCompiler

        public AlgorithmFunctionCompiler​(List<AlgorithmTreeNode> functionBody,
                                         CompileContext compileContext,
                                         AlgorithmFunction method,
                                         AlgorithmCompiler compiler)
        Create an instance of AlgorithmFunctionCompiler.
        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.