- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
@Override public void exec(Env env, Scope scope, Writer writer) { stat.exec(this.env, scope, writer); } }
public For(ForCtrl forCtrl, StatList statList, Stat _else) { this.forCtrl = forCtrl; this.stat = statList.getActualStat(); this._else = _else; }
public ForIteratorStatus(Object outer, Object target, Location location) { this.outer = outer; this.index = 0; this.location = location; init(target); }
public void exec(Env env, Scope scope, Writer writer) { scope = new Scope(scope); if (assignArray != null) { evalAssignExpression(scope); } stat.exec(env, scope, writer); scope.getCtrl().setJumpNone(); }
public void exec(Env env, Scope scope, Writer writer) { Object switchValue = expr.eval(scope); if (nextCase != null && nextCase.execIfMatch(switchValue, env, scope, writer)) { return ; } if (_default != null) { _default.exec(env, scope, writer); } }
public void exec(Env env, Scope scope, Writer writer) { scope = new Scope(scope); if (forCtrl.isIterator()) { forIterator(env, scope, writer); } else { forLoop(env, scope, writer); } }
public Output getOutputDirective(ExprList exprList, Location location) { return new Output(exprList, location); } }
public Entry<Object, Object> next() { forEntry.init(iterator.next()); return forEntry; }
public void exec(Env env, Scope scope, Writer writer) { Define function = env.getFunction(funcName); if (function != null) { function.call(env, scope, exprList, writer); } else if (callIfDefined) { return ; } else { throw new TemplateException("Template function not defined: " + funcName, location); } } }
public void exec(Env env, Scope scope, Writer writer) { stat.exec(env, scope, writer); } }
public Else(StatList statList) { this.stat = statList.getActualStat(); }
public void exec(Env env, Scope scope, Writer writer) { stat.exec(env, scope, writer); } }
public Default(StatList statList) { this.stat = statList.getActualStat(); }
public ElseIf(ExprList cond, StatList statList, Location location) { if (cond.length() == 0) { throw new ParseException("The condition expression of #else if statement can not be blank", location); } this.cond = cond.getActualExpr(); this.stat = statList.getActualStat(); }
public If(ExprList cond, StatList statList, Location location) { if (cond.length() == 0) { throw new ParseException("The condition expression of #if statement can not be blank", location); } this.cond = cond.getActualExpr(); this.stat = statList.getActualStat(); }
public void exec(Env env, Scope scope, Writer writer) { Ctrl ctrl = scope.getCtrl(); for (int i=0; i<statArray.length; i++) { if (ctrl.isJump()) { break ; } statArray[i].exec(env, scope, writer); } }
public Case(ExprList exprList, StatList statList, Location location) { if (exprList.length() == 0) { throw new ParseException("The parameter of #case directive can not be blank", location); } this.exprArray = exprList.getExprArray(); this.stat = statList.getActualStat(); }
public void exec(Env env, Scope scope, Writer writer) { if (scope.get(NAME_SPACE_KEY) != null) { throw new TemplateException("#namespace directive can not be nested", location); } scope.set(NAME_SPACE_KEY, nameSpace); try { stat.exec(env, scope, writer); } finally { scope.remove(NAME_SPACE_KEY); } }