public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) eval(expr, start, offset, ctx, factory)) { return eval(expr, blockStart, blockOffset, ctx, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) condition.getValue(ctx, thisValue, factory)) { return nestedStatement.getValue(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValueAccelerated(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }
return ifNode.setElseBlock(expr, st = trimRight(blockStart + 1), trimLeft(blockEnd) - st, pCtx); return ifNode.setElseIf((IfNode) createBlockToken(startCond, endCond, trimRight(blockStart + 1), trimLeft(blockEnd), type));
if (((IfNode) (tk = _captureBlock(tk, expr, cond, type))).getElseBlock() != null) { cursor++; return first;
return new IfNode(expr, condStart, condOffset, blockStart, blockOffset, fields, pCtx); case ASTNode.BLOCK_FOR: for (int i = condStart; i < condEnd; i++) {
return ifNode.setElseBlock(expr, st = trimRight(blockStart + 1), trimLeft(blockEnd) - st, pCtx); return ifNode.setElseIf((IfNode) createBlockToken(startCond, endCond, trimRight(blockStart + 1), trimLeft(blockEnd), type));
if (((IfNode) (tk = _captureBlock(tk, expr, cond, type))).getElseBlock() != null) { cursor++; return first;
return new IfNode(expr, condStart, condOffset, blockStart, blockOffset, fields, pCtx); case ASTNode.BLOCK_FOR: for (int i = condStart; i < condEnd; i++) {
return ifNode.setElseBlock(subArray(trimRight(blockStart + 1), trimLeft(blockEnd - 1))); return ifNode.setElseIf((IfNode) createBlockToken(startCond, endCond, trimRight(blockStart + 1), trimLeft(blockEnd), type));
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) condition.getValue(ctx, thisValue, factory)) { return nestedStatement.getValue(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValueAccelerated(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, idxAlloc ? factory : new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) eval(expr, start, offset, ctx, factory)) { return eval(expr, blockStart, blockOffset, ctx, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }
if (((IfNode) (tk = _captureBlock(tk, expr, cond, type))).getElseBlock() != null) { cursor++; return first;
return new IfNode(subArray(condStart, condEnd), subArray(blockStart, blockEnd), fields, pCtx); case ASTNode.BLOCK_FOR: for (int i = condStart; i < condEnd; i++) {
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) condition.getValue(ctx, thisValue, factory)) { return nestedStatement.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValueAccelerated(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { if ((Boolean) eval(name, ctx, factory)) { return eval(block, ctx, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseIf != null) { return elseIf.getReducedValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else if (elseBlock != null) { return elseBlock.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory)); } else { return null; } }