Class SingletonAtomizerCompiler

  • public class SingletonAtomizerCompiler
    extends ToItemCompiler
    Generate code for a SingletonAtomizer. This class combines two functions: atomizing an input sequence, and checking that the atomized sequence is a singleton
    • Constructor Detail

      • SingletonAtomizerCompiler

        public SingletonAtomizerCompiler()
    • Method Detail

      • compileToItem

        public void compileToItem​(CompilerService compiler,
                                  Expression expression)
                           throws CannotCompileException
        Generate bytecode to evaluate the SingletonAtomizer as an Item Precondition: none. Postcondition: the stack contains an 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