Codota Logo
com.jfinal.template.stat.ast
Code IndexAdd Codota to your IDE (free)

How to use com.jfinal.template.stat.ast

Best Java code snippets using com.jfinal.template.stat.ast (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: jfinal/jfinal

  @Override
  public void exec(Env env, Scope scope, Writer writer) {
    stat.exec(this.env, scope, writer);
  }
}
origin: jfinal/jfinal

public For(ForCtrl forCtrl, StatList statList, Stat _else) {
  this.forCtrl = forCtrl;
  this.stat = statList.getActualStat();
  this._else = _else;
}
 
origin: jfinal/jfinal

public ForIteratorStatus(Object outer, Object target, Location location) {
  this.outer = outer;
  this.index = 0;
  this.location = location;
  init(target);
}
 
origin: jfinal/jfinal

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();
}
 
origin: jfinal/jfinal

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);
  }
}
 
origin: jfinal/jfinal

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);
  }
}
 
origin: jfinal/jfinal

  public Output getOutputDirective(ExprList exprList, Location location) {
    return new Output(exprList, location);
  }
}
origin: jfinal/jfinal

public Entry<Object, Object> next() {
  forEntry.init(iterator.next());
  return forEntry;
}
 
origin: jfinal/jfinal

  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);
    }
  }
}
origin: jfinal/jfinal

  public void exec(Env env, Scope scope, Writer writer) {
    stat.exec(env, scope, writer);
  }
}
origin: jfinal/jfinal

public Else(StatList statList) {
  this.stat = statList.getActualStat();
}
 
origin: jfinal/jfinal

  public void exec(Env env, Scope scope, Writer writer) {
    stat.exec(env, scope, writer);
  }
}
origin: jfinal/jfinal

public Default(StatList statList) {
  this.stat = statList.getActualStat();
}
 
origin: jfinal/jfinal

  public void exec(Env env, Scope scope, Writer writer) {
    if (Logic.isTrue(cond.eval(scope))) {
      stat.exec(env, scope, writer);
    } else if (elseIfOrElse != null) {
      elseIfOrElse.exec(env, scope, writer);
    }
  }
}
origin: jfinal/jfinal

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();
}
 
origin: jfinal/jfinal

  public void exec(Env env, Scope scope, Writer writer) {
    if (Logic.isTrue(cond.eval(scope))) {
      stat.exec(env, scope, writer);
    } else if (elseIfOrElse != null) {
      elseIfOrElse.exec(env, scope, writer);
    }
  }
}
origin: jfinal/jfinal

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();
}
 
origin: jfinal/jfinal

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);	
  }
}
 
origin: jfinal/jfinal

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();
}
 
origin: jfinal/jfinal

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);
  }
}
 
com.jfinal.template.stat.ast

Most used classes

  • Stat
    Stat
  • Text
    Text 输出纯文本块以及使用 "#[[" 与 "]]#" 定义的原样输出块
  • ArrayIterator
  • Call
    Call 调用模板函数,两种用法: 1:常规调用 #@funcName(p1, p2, ..., pn) 2:安全调用,函数被定义才调用,否则跳过 #@funcName?(p1, p2, ..., p
  • Case
    Case
  • Default,
  • Define,
  • Else,
  • ElseIf,
  • For,
  • ForEntry,
  • ForIteratorStatus,
  • ForLoopStatus,
  • If,
  • Include,
  • MapIterator,
  • Output,
  • Set,
  • SetGlobal
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now