Examples of ILoop


Examples of org.lilystudio.smarty4j.statement.ILoop

  @Override
  public void process(Template template, TemplateReader in, String left,
      String right) {
    blocks = new ILoop[floor - 1];
    ILoop now = (ILoop) Utilities.find(getParent(), ILoop.class);
    int i = 1;
    while (true) {
      if (now == null) {
        in.addMessage("没有需要跳转的位置");
        return;
      }
      if (i == floor) {
        break;
      }
      blocks[i - 1] = now;
      now = (ILoop) Utilities.find(now.getParent(), ILoop.class);
      i++;
    }
    startLabel = ((ILoop) now).getStartLabel();
  }
View Full Code Here

Examples of org.lilystudio.smarty4j.statement.ILoop

  @Override
  public void process(Template template, TemplateReader in, String left,
      String right) {
    blocks = new ILoop[floor - 1];
    ILoop now = (ILoop) Utilities.find(getParent(), ILoop.class);
    int i = 1;
    while (true) {
      if (now == null) {
        in.addMessage("没有需要跳转的位置");
        return;
      }
      if (i == floor) {
        break;
      }
      blocks[i - 1] = now;
      now = (ILoop) Utilities.find(now.getParent(), ILoop.class);
      i++;
    }
    endLabel = now.getEndLabel();
  }
View Full Code Here

Examples of scala.tools.nsc.interpreter.ILoop

        // Without this class loader setting, the REPL and the target process will
        // see different instances of a static variable of the same class!
        // http://stackoverflow.com/questions/5950025/multiple-instances-of-static-variables
        settings.explicitParentLoader_$eq(Option.apply(cl));

        ILoop repl = new ILoop(
            new BufferedReader(new InputStreamReader(in)),
            new PrintWriter(out)
        );

        // This call does not return until the stream (connection) is closed
        repl.process(settings);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.