public WhileNode(char[] expr, int start, int offset, int blockStart, int blockEnd, int fields, ParserContext pCtx) { super(pCtx); expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockEnd, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public UntilNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public UntilNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public WhileNode(char[] expr, int start, int offset, int blockStart, int blockEnd, int fields, ParserContext pCtx) { super(pCtx); expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockEnd, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public DoUntilNode(char[] expr, int start, int offset, int blockStart, int blockOffset, ParserContext pCtx) { super(pCtx); this.expr = expr; this.start = start; this.offset = offset; expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public DoUntilNode(char[] expr, int start, int offset, int blockStart, int blockOffset, ParserContext pCtx) { super(pCtx); this.expr = expr; this.start = start; this.offset = offset; expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public DoNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); this.expr = expr; this.start = start; this.offset = offset; this.blockStart = blockStart; this.blockOffset = blockOffset; this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx); expectType(pCtx, this.condition, Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public DoNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); this.expr = expr; this.start = start; this.offset = offset; this.blockStart = blockStart; this.blockOffset = blockOffset; this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx); expectType(pCtx, this.condition, Boolean.class, ((fields & COMPILE_IMMEDIATE) != 0)); if (pCtx != null) { pCtx.pushVariableScope(); } this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } }
public ForEachNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); handleCond(this.expr = expr, this.start = start, this.offset = offset, this.fields = fields, pCtx); this.blockStart = blockStart; this.blockOffset = blockOffset; if ((fields & COMPILE_IMMEDIATE) != 0) { if (pCtx.isStrictTypeEnforcement() && itemType != null) { pCtx = pCtx.createSubcontext(); pCtx.addInput(item, itemType); } pCtx.pushVariableScope(); pCtx.makeVisible(item); this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); pCtx.popVariableScope(); } }
public IfNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); if ((this.expr = expr) == null || offset == 0) { throw new CompileException("statement expected", expr, start); } this.start = start; this.offset = offset; this.blockStart = blockStart; this.blockOffset = blockOffset; idxAlloc = pCtx != null && pCtx.isIndexAllocation(); if ((fields & COMPILE_IMMEDIATE) != 0) { expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, true); if (pCtx != null) { pCtx.pushVariableScope(); } this.nestedStatement = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } } }
public IfNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); if ((this.expr = expr) == null || offset == 0) { throw new CompileException("statement expected", expr, start); } this.start = start; this.offset = offset; this.blockStart = blockStart; this.blockOffset = blockOffset; idxAlloc = pCtx != null && pCtx.isIndexAllocation(); if ((fields & COMPILE_IMMEDIATE) != 0) { expectType(pCtx, this.condition = (ExecutableStatement) subCompileExpression(expr, start, offset, pCtx), Boolean.class, true); if (pCtx != null) { pCtx.pushVariableScope(); } this.nestedStatement = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); if (pCtx != null) { pCtx.popVariableScope(); } } }
public ForEachNode(char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx) { super(pCtx); handleCond(this.expr = expr, this.start = start, this.offset = offset, this.fields = fields, pCtx); this.blockStart = blockStart; this.blockOffset = blockOffset; if ((fields & COMPILE_IMMEDIATE) != 0) { if (pCtx.isStrictTypeEnforcement() && itemType != null) { pCtx = pCtx.createSubcontext(); pCtx.addInput(item, itemType); } pCtx.pushVariableScope(); pCtx.makeVisible(item); this.compiledBlock = (ExecutableStatement) subCompileExpression(expr, blockStart, blockOffset, pCtx); pCtx.popVariableScope(); } }