Examples of nextNode()


Examples of org.apache.xpath.objects.XNodeSet.nextNode()

   
    XNodeSet nodes = (XNodeSet) m_refsTable.get(ref);
    if (nodes == null)
    {
      nodes = new XNodeSet(node, xctxt.getDTMManager());
      nodes.nextNode();
      m_refsTable.put(ref, nodes);
    }
    else
    {
      // Nodes are passed to this method in document order.  Since we need to
View Full Code Here

Examples of org.archive.wayback.util.htmllex.ContextAwareLexer.nextNode()

    Lexer lexer = new Lexer(lexPage);
    Lexer.STRICT_REMARKS = false;
      ContextAwareLexer lex = new ContextAwareLexer(lexer, context);

      Node node;
      while ((node = lex.nextNode()) != null) {
          delegator.handleNode(context, node);
      }
      delegator.handleParseComplete(context);

    // At this point, baos contains the utf-8 encoded bytes of our result:
View Full Code Here

Examples of org.brixcms.jcr.api.JcrNodeIterator.nextNode()

    private List<AbstractJcrTreeNode> loadChildren() {
        List<AbstractJcrTreeNode> children = new ArrayList<AbstractJcrTreeNode>();
        JcrNodeIterator iterator = nodeModel.getObject().getNodes();
        List<BrixNode> entries = new ArrayList<BrixNode>((int) iterator.getSize());
        while (iterator.hasNext()) {
            entries.add((BrixNode) iterator.nextNode());
        }

        for (BrixNode entry : entries) {
            if (!entry.isHidden() && (displayFoldersOnly() == false || entry.isFolder()) &&
                    SitePlugin.get().canViewNodeChildren(entry, Context.ADMINISTRATION)) {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.EntityCollection.nextNode()

               // NodeIterator nodes = node.getNodes();
               EntityCollection nodes = (EntityCollection)node.getNodes();
               Collections.sort(nodes.getList(), NODE_COMPARATOR);
               while (nodes.hasNext())
               {
                  Node node = nodes.nextNode();
                  xsw.writeStartElement("tr");
                  if (RESTArtifactLoaderService.isFile(node))
                  {
                     if (node.getName().endsWith("sha1"))
                        continue;
View Full Code Here

Examples of org.hibernate.hql.ast.util.ASTIterator.nextNode()

    System.out.println( "--- ASTIterator ---" );
    ASTIterator iter2 = new ASTIterator( t );
    int count2 = 0;
    while ( iter2.hasNext() ) {
      AST n = iter2.nextNode();
      count2++;
      System.out.println( n );
    }
    assertEquals( 10, count2 );
View Full Code Here

Examples of org.hibernate.hql.ast.util.ASTParentsFirstIterator.nextNode()

    System.out.println( "--- ASTParentsFirstIterator ---" );
    ASTParentsFirstIterator iter = new ASTParentsFirstIterator( t );
    int count = 0;
    while ( iter.hasNext() ) {
      AST n = iter.nextNode();
      count++;
      System.out.println( n );
    }
    assertEquals( 10, count );
View Full Code Here

Examples of org.htmlparser.lexer.Lexer.nextNode()

            String lineNumbers = "1";
            String template = null;
            tags.push(new HtmlSnippet(lineNumbers, filePath));

            // NOTE done like this the tags can be cached for faster processing
            while ((node = lexer.nextNode()) != null) {
                if (node instanceof Remark) {
                    // TODO need to pick up on comments within tags; at the
                    // moment this splits a tag into two causing a
                    // failure later
                    continue;
View Full Code Here

Examples of org.htmlparser.util.NodeIterator.nextNode()

        try
        {

            if (en.hasMoreNodes())
            {
                node = en.nextNode();

                tag = (Tag) node;
                h = tag.getAttributes();
                String classValue = (String) h.get("CLASS");
                assertEquals(
View Full Code Here

Examples of org.htmlparser.util.SimpleNodeIterator.nextNode()

        {
            startTag.accept(visitor);
            SimpleNodeIterator children = children();
            while (children.hasMoreNodes())
            {
                Node child = (Node) children.nextNode();
                child.accept(visitor);
            }
            endTag.accept(visitor);
        }
        if (visitor.shouldRecurseSelf())
View Full Code Here

Examples of org.mvel2.util.ASTIterator.nextNode()

    }

    while (iter.hasMoreNodes()) {
      sbuf.append("(").append(context.node++).append(") ");

      if ((tk = iter.nextNode()) instanceof NestedStatement
          && ((NestedStatement) tk).getNestedStatement() instanceof CompiledExpression) {
        //noinspection StringConcatenationInsideStringBufferAppend
        sbuf.append("NEST [" + tk.getClass().getSimpleName() + "]: { " + tk.getName() + " }\n");
        sbuf.append(decompile((CompiledExpression) ((NestedStatement) tk).getNestedStatement(), true, context));
      }
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.