Examples of Foreach


Examples of client.net.sf.saxon.ce.expr.instruct.ForEach

                // in all cases: or perhaps to a variant of string() that maps () to (). This would
                // enable further optimizations.
                SystemFunction fn = (SystemFunction)SystemFunction.makeSystemFunction(
                        "string", new Expression[]{new ContextItemExpression()});
                fn.setContainer(getContainer());
                ForEach map = new ForEach(nodeExp, fn, false);
                map.setContainer(getContainer());
                return map;
            } else {
                SystemFunction fn = (SystemFunction)SystemFunction.makeSystemFunction(
                        "string", new Expression[]{nodeExp});
                fn.setContainer(getContainer());
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.instruct.ForEach

        if (block == null) {
            // body of for-each is empty: it's a no-op.
            return Literal.makeEmptySequence();
        }
        try {
            return new ForEach(sortedSequence, makeExpressionVisitor().simplify(block), containsTailCall);
        } catch (XPathException err) {
            compileError(err);
            return null;
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.instruct.ForEach

//                return new DocumentSorter(this);
//            }

        } else if (stepType.isAtomicType()) {
            // This is a simple mapping expression: a/b where b returns atomic values
            ForEach ame = new ForEach(start, step, false);
            ExpressionTool.copyLocationInfo(this, ame);
            return visitor.typeCheck(visitor.simplify(ame), contextItemType);
        } else {
            // This is a hybrid mapping expression, one where we don't know the type of the step
            // (and therefore, we don't know whether sorting into document order is required) until run-time
View Full Code Here

Examples of lombok.ast.ForEach

   
    VariableDefinition decl = new VariableDefinition().rawTypeReference(type).rawVariables()
        .addToEnd(varDefEntry.getValue());
    positionSpan(decl, modifiers, varDefEntry);
    decl.astModifiers(createModifiersIfNeeded(modifiers.getValue(), decl.getPosition().getStart()));
    return posify(new ForEach().rawVariable(decl).rawIterable(iterable).rawStatement(statement));
  }
View Full Code Here

Examples of lombok.ast.ForEach

      }
      set(node, b);
    }
   
    @Override public void visitForeachLoop(JCEnhancedForLoop node) {
      ForEach fe = new ForEach();
      fe.rawIterable(toTree(node.getExpression()));
      fe.rawStatement(toTree(node.getStatement()));
      fe.rawVariable(toTree(node.getVariable(), FlagKey.VARDEF_IS_DEFINITION));
      set(node, fe);
    }
View Full Code Here

Examples of net.sf.laja.template.Foreach

  }

  @Override
  public IForeach createForeach(ITemplate itemplate) {
    Template template = (Template) itemplate;
    return new Foreach(source, template.getContext());
  }
View Full Code Here

Examples of net.sf.saxon.instruct.ForEach

        if (block == null) {
            // body of for-each is empty: it's a no-op.
            return Literal.makeEmptySequence();
        }
        try {
            return new ForEach(sortedSequence, makeExpressionVisitor().simplify(block), containsTailCall);
        } catch (XPathException err) {
            compileError(err);
            return null;
        }
    }
View Full Code Here

Examples of net.sf.saxon.instruct.ForEach

        if (block == null) {
            // body of for-each is empty: it's a no-op.
            return Literal.makeEmptySequence();
        }
        try {
            return new ForEach(sortedSequence, makeExpressionVisitor().simplify(block));
        } catch (XPathException err) {
            compileError(err);
            return null;
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.model.Foreach

     */
    private static void readForeach(final XMLStreamReader reader, final Configuration configuration,
                                    final Executable executable, final ActionsContainer parent)
            throws XMLStreamException, ModelException {

        Foreach fe = new Foreach();
        fe.setArray(readRequiredAV(reader, ELEM_FOREACH, ATTR_ARRAY));
        fe.setItem(readRequiredAV(reader, ELEM_FOREACH, ATTR_ITEM));
        fe.setIndex(readAV(reader, ATTR_INDEX));
        readNamespaces(configuration, fe);
        fe.setParent(executable);
        if (parent != null) {
            parent.addAction(fe);
        } else {
            executable.addAction(fe);
        }
View Full Code Here

Examples of org.eclipse.bpel.model.ForEach

        if (result == null) result = caseWSDLElement(opaqueActivity);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.FOR_EACH: {
        ForEach forEach = (ForEach)theEObject;
        Object result = caseForEach(forEach);
        if (result == null) result = caseActivity(forEach);
        if (result == null) result = caseExtensibleElement(forEach);
        if (result == null) result = caseExtensibleElement_1(forEach);
        if (result == null) result = caseWSDLElement(forEach);
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.