Package net.sf.jmatchparser.template.engine.operation

Examples of net.sf.jmatchparser.template.engine.operation.LoopForkOperation


      params[0] = Parameter.getLiteralParameter("0");
    Label startLabel = new Label(), endLabel = new Label(), forkLabel = new Label();
    CounterOperation co = new CounterOperation(template.getCurrentTemplatePosition());
    template.appendOperation(co);
    startLabel.setDestinationToNextCommand(template);
    template.appendOperation(new LoopForkOperation(template.getCurrentTemplatePosition(), forkLabel, co, params[0], params[1]));
    template.appendOperation(new JumpOperation(template.getCurrentTemplatePosition(), endLabel));
    forkLabel.setDestinationToNextCommand(template);
    return new LoopCommandState(template, co, startLabel, endLabel);
  }
View Full Code Here

TOP

Related Classes of net.sf.jmatchparser.template.engine.operation.LoopForkOperation

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.