Examples of visitTree()


Examples of edu.stanford.nlp.trees.TreeVisitor.visitTree()

      for (Tree tree; (tree = tr.readTree()) != null; ++treeId) {
        if (tree.value().equals("ROOT")) {
          // Skip over the ROOT tag
          tree = tree.firstChild();
        }
        visitor.visitTree(tree);
        System.out.println(tree.toString());
      }
      tr.close();
     
      System.err.printf("Processed %d trees.%n", treeId);
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

                        if (!dataChild.getParent().isRendered() && visitContext.getHints().contains(VisitHint.SKIP_UNRENDERED)) {
                            // skip unrendered columns
                            continue;
                        }

                        if (dataChild.visitTree(visitContext, callback)) {
                            visitResult = true;

                            return DataVisitResult.STOP;
                        }
                    }
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

    private boolean visitComponents(Iterator<UIComponent> components, VisitContext context, VisitCallback callback) {

        while (components.hasNext()) {
            UIComponent nextChild = components.next();

            if (nextChild.visitTree(context, callback)) {
                return true;
            }
        }

        return false;
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

                        while (i <= end && _isIndexAvailable())
                        {
                            for (int j = 0, childCount = getChildCount(); j < childCount; j++)
                            {
                                UIComponent child = getChildren().get(j);
                                if (child.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                           
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

                        while (i < end && _isIndexAvailable())
                        {
                            for (int j = 0, childCount = getChildCount(); j < childCount; j++)
                            {
                                UIComponent child = getChildren().get(j);
                                if (child.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                           
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

                try
                {
                    facesContext.getAttributes().put(SKIP_ITERATION_HINT, Boolean.TRUE);

                    VisitContext visitContext = VisitContext.createVisitContext(facesContext, null, null);
                    facet.visitTree(visitContext, new RefreshViewContext());
                }
                finally
                {
                    // We must remove hint in finally, because an exception can break this phase,
                    // but lifecycle can continue, if custom exception handler swallows the exception
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

        UIComponent facet = getFacet(name);
        if (facet != null) {
            VisitResult result = visitContext.invokeMetaComponentVisitCallback(this, callback, name);

            if (result == VisitResult.ACCEPT) {
                if (facet.visitTree(visitContext, callback)) {
                    result = VisitResult.COMPLETE;
                }
            }

            return result == VisitResult.COMPLETE;
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

    if (visitContext.getHints().contains(VisitHint.SKIP_UNRENDERED))
    {
      UIComponent facet = _getFacet();
      if (facet != null)
      {
        return facet.visitTree(visitContext, callback);
      }
      return false;
    }
    else
    {
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

      // children.
      for (Iterator<UIComponent> iter = parentComponent.getFacetsAndChildren(); iter.hasNext();)
      {
        UIComponent child = iter.next();

        if (child.visitTree(visitContext, callback))
        {
          return true;
        }
      }
View Full Code Here

Examples of javax.faces.component.UIComponent.visitTree()

                        while (i <= end && _isIndexAvailable())
                        {
                            for (int j = 0, childCount = getChildCount(); j < childCount; j++)
                            {
                                UIComponent child = getChildren().get(j);
                                if (child.visitTree(context, callback))
                                {
                                    return true;
                                }
                            }
                           
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.