Class CalculatorCompiler

    • Constructor Detail

      • CalculatorCompiler

        public CalculatorCompiler()
    • Method Detail

      • setCompilerService

        public void setCompilerService​(CompilerService compiler)
      • compute

        public abstract void compute​(Generator ga,
                                     javax.xml.transform.SourceLocator locator)
        Generate bytecode to compute the result of the arithmetic expression
        Parameters:
        ga - the code generator
        locator - the location of the arithmetic expression