protected T initialValue() { ExecutionStack stk = new ExecutionStack(); stk.push("."); return (T) stk; } }
public ExecutionStack getRelPath() { if (relPath == null) { relPath = new ExecutionStack(); relPath.push(baseDir); } return relPath; } }
public ExecutionStack getRelPath() { if (relPath == null) { relPath = new ExecutionStack(); relPath.push(baseDir); } return relPath; } }
protected T initialValue() { ExecutionStack stk = new ExecutionStack(); stk.push("."); return (T) stk; } }
public CompiledTemplate compile() { return new CompiledTemplate(template, compileFrom(null, new ExecutionStack())); }
public CompiledTemplate compile() { return new CompiledTemplate(template, compileFrom(null, new ExecutionStack())); }
public CompiledTemplate compile() { return new CompiledTemplate(template, compileFrom(null, new ExecutionStack())); }
public CompiledTemplate compile() { return new CompiledTemplate(template, compileFrom(null, new ExecutionStack())); }
public Object parse() { try { stk = new ExecutionStack(); dStack = new ExecutionStack(); variableFactory.setTiltFlag(false); cursor = start; return parseAndExecuteInterpreted(); } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace(); throw new CompileException("unexpected end of statement", expr, length); } catch (NullPointerException e) { e.printStackTrace(); if (cursor >= length) { throw new CompileException("unexpected end of statement", expr, length); } else { throw e; } } catch (CompileException e) { throw ErrorUtil.rewriteIfNeeded(e, expr, cursor); } }
public Object parse() { try { stk = new ExecutionStack(); dStack = new ExecutionStack(); variableFactory.setTiltFlag(false); cursor = start; return parseAndExecuteInterpreted(); } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace(); throw new CompileException("unexpected end of statement", expr, length); } catch (NullPointerException e) { e.printStackTrace(); if (cursor >= length) { throw new CompileException("unexpected end of statement", expr, length); } else { throw e; } } catch (CompileException e) { throw ErrorUtil.rewriteIfNeeded(e, expr, cursor); } }
public Object parse() { try { stk = new ExecutionStack(); dStack = new ExecutionStack(); cursor = 0; return parseAndExecuteInterpreted(); } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace(); throw new ParseException("unexpected end of statement", expr, length); } catch (NullPointerException e) { e.printStackTrace(); if (cursor >= length) { throw new ParseException("unexpected end of statement", expr, length); } else { throw e; } } catch (EndWithValue end) { return end.getValue(); } finally { if (parserContext != null) contextControl(REMOVE, null, null); } }
@Override public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) { ExecutionStack stk = new ExecutionStack(); stk.push(getReducedValue(stk, thisValue, factory)); if (stk.isReduceable()) { while (true) { stk.op(); if (stk.isReduceable()) { stk.xswap(); } else { break; } } } return stk.peek(); }
@Override public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) { ExecutionStack stk = new ExecutionStack(); stk.push(getReducedValue(stk, thisValue, factory)); if (stk.isReduceable()) { while (true) { stk.op(); if (stk.isReduceable()) { stk.xswap(); } else { break; } } } return stk.peek(); }
ExecutionStack call = new ExecutionStack(); while (!stack.isEmpty() && !(stack.peek() instanceof Class)) { call.push(stack.pop());
ExecutionStack call = new ExecutionStack(); while (!stack.isEmpty() && !(stack.peek() instanceof Class)) { call.push(stack.pop());
stk = new ExecutionStack(); dStack = new ExecutionStack(); compileMode = true;
ExecutionStack stk = new ExecutionStack();
ExecutionStack stk = new ExecutionStack();
ExecutionStack stk = new ExecutionStack();
stk = new ExecutionStack(); dStack = new ExecutionStack(); compileMode = true;