Examples of While


Examples of ch.njol.skript.lang.While

          if (c == null)
            continue;
          if (Skript.debug() || n.debug())
            Skript.debug(indentation + "while " + c.toString(null, true) + ":");
          final Kleenean hadDelayBefore = hasDelayBefore;
          items.add(new While(c, (SectionNode) n));
          if (hadDelayBefore != Kleenean.TRUE && hasDelayBefore != Kleenean.FALSE)
            hasDelayBefore = Kleenean.UNKNOWN;
        } else if (name.equalsIgnoreCase("else")) {
          if (items.size() == 0 || !(items.get(items.size() - 1) instanceof Conditional) || ((Conditional) items.get(items.size() - 1)).hasElseClause()) {
            Skript.error("'else' has to be placed just after an 'if' or 'else if' section");
View Full Code Here

Examples of com.sk89q.worldedit.internal.expression.runtime.While

                case 'w': { // while
                    ++position;
                    final RValue condition = parseBracket();
                    final RValue body = parseStatements(true);

                    statements.add(new While(current.getPosition(), condition, body, false));
                    break;
                }

                case 'd': { // do/default
                    if (hasKeyword("default")) {
                        break loop;
                    }

                    ++position;
                    final RValue body = parseStatements(true);

                    consumeKeyword("while");

                    final RValue condition = parseBracket();

                    statements.add(new While(current.getPosition(), condition, body, true));

                    expectSemicolon = true;
                    break;
                }
View Full Code Here

Examples of lombok.ast.While

    source.registerStructure(node, defaultStatement);
    return posify(node);
  }
 
  public Node createWhileStatement(Node condition, Node statement) {
    return posify(new While().rawCondition(condition).rawStatement(statement));
  }
View Full Code Here

Examples of lombok.ast.While

    @Override public void visitThrow(JCThrow node) {
      set(node, new Throw().rawThrowable(toTree(node.getExpression())));
    }
   
    @Override public void visitWhileLoop(JCWhileLoop node) {
      While w = new While();
      JCExpression cond = node.getCondition();
      setConversionPositionInfo(w, "()", getPosition(cond));
      set(node, w.rawCondition(toTree(removeParens(cond))).rawStatement(toTree(node.getStatement())));
    }
View Full Code Here

Examples of net.sf.saxon.instruct.While

    public Expression compile(Executable exec) throws TransformerConfigurationException {
        Block block = new Block();
        compileChildren(exec, block, true);
        try {
            While w = new While(test, block.simplify(getStaticContext()));
            ExpressionTool.makeParentReferences(w);
            return w;
        } catch (XPathException e) {
            compileError(e);
            return null;
View Full Code Here

Examples of net.sf.saxon.instruct.While

    public Expression compile(Executable exec) throws XPathException {
        Expression action = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true);
        if (action == null) {
            action = Literal.makeEmptySequence();
        }
        While w = new While(test, action);
        return w;
    }
View Full Code Here

Examples of org.activiti.engine.test.pvm.activities.While

        .initial()
        .behavior(new Automatic())
        .transition("loop")
      .endActivity()
      .createActivity("loop")
        .behavior(new While("count", 0, 500))
        .transition("one", "more")
        .transition("end", "done")
      .endActivity()
      .createActivity("one")
        .behavior(new Automatic())
View Full Code Here

Examples of org.camunda.bpm.engine.test.pvm.activities.While

        .startTransition("loop")
          .executionListener(ExecutionListener.EVENTNAME_TAKE, transitionVerifier)
        .endTransition()
      .endActivity()
      .createActivity("loop")
        .behavior(new While("count", 0, 10))
        .executionListener(ExecutionListener.EVENTNAME_START, verifier)
        .executionListener(ExecutionListener.EVENTNAME_END, verifier)
        .startTransition("one", "more")
         .executionListener(ExecutionListener.EVENTNAME_TAKE, transitionVerifier)
        .endTransition()
View Full Code Here

Examples of org.camunda.bpm.engine.test.pvm.activities.While

        .initial()
        .behavior(new Automatic())
        .transition("loop")
      .endActivity()
      .createActivity("loop")
        .behavior(new While("count", 0, 10))
        .transition("one", "more")
        .transition("end", "done")
      .endActivity()
      .createActivity("one")
        .behavior(new Automatic())
View Full Code Here

Examples of org.eclipse.bpel.model.While

        if (result == null) result = caseWSDLElement(sequence);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.WHILE: {
        While while_ = (While)theEObject;
        Object result = caseWhile(while_);
        if (result == null) result = caseActivity(while_);
        if (result == null) result = caseExtensibleElement(while_);
        if (result == null) result = caseExtensibleElement_1(while_);
        if (result == null) result = caseWSDLElement(while_);
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.