Class FirstItemExpressionCompiler

  • public class FirstItemExpressionCompiler
    extends ToItemCompiler
    Generate code for the FirstItemExpression
    • Constructor Detail

      • FirstItemExpressionCompiler

        public FirstItemExpressionCompiler()
    • Method Detail

      • compileToItem

        public void compileToItem​(CompilerService compiler,
                                  Expression expression)
                           throws CannotCompileException
        Generate bytecode to evaluate the expression as a Item Precondition: none. Postcondition: the stack contains a Item representing the result of the expression
        Specified by:
        compileToItem in class ExpressionCompiler
        compiler - the compiler service
        expression - the expression to be compiled
        CannotCompileException - if the expression cannot be compiled to bytecode