Package org.lilystudio.smarty4j.statement

Examples of org.lilystudio.smarty4j.statement.BlockStatement


  public void addStatement(IStatement statement) throws ParseException {
    if (statement instanceof $sectionelse) {
      if (elseBlock != null) {
        throw new ParseException("不能重复定义sectionelse");
      } else {
        elseBlock = new BlockStatement();
        elseBlock.setParent(this.getParent());
      }
    } else if (elseBlock != null) {
      elseBlock.addStatement(statement);
    } else {
View Full Code Here


      addBranch((($elseif) statement).getCheckExpression());
    } else if (statement instanceof $else) {
      if (elseBlock != null) {
        throw new ParseException("在else语句后不能再包含其它elseif或else语句");
      }
      elseBlock = new BlockStatement();
      elseBlock.setParent(this);
      now = elseBlock;
    } else {
      now.addStatement(statement);
    }
View Full Code Here

  public void addStatement(IStatement statement) throws ParseException {
    if (statement instanceof $foreachelse) {
      if (elseBlock != null) {
        throw new ParseException("不能重复定义foreachelse");
      } else {
        elseBlock = new BlockStatement();
        elseBlock.setParent(this.getParent());
      }
    } else if (elseBlock != null) {
      elseBlock.addStatement(statement);
    } else {
View Full Code Here

TOP

Related Classes of org.lilystudio.smarty4j.statement.BlockStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.