Class ScopeHierarchyTreeItem

  • All Implemented Interfaces:
    javafx.event.EventTarget

    public final class ScopeHierarchyTreeItem
    extends javafx.scene.control.TreeItem<java.lang.Object>
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.scene.control.TreeItem

        javafx.scene.control.TreeItem.TreeModificationEvent<T extends java.lang.Object>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ScopeHierarchyTreeItem buildAscendantHierarchy​(net.sourceforge.pmd.lang.ast.Node node)
      Gets the scope hierarchy of a node.
      java.util.Optional<ScopeHierarchyTreeItem> tryFindNode​(java.lang.Object searched, int maxDepth)
      Tries to find a node in the descendants of this node that has the same toString as the given value.
      • Methods inherited from class javafx.scene.control.TreeItem

        addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, isLeaf, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valueProperty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • tryFindNode

        public java.util.Optional<ScopeHierarchyTreeItem> tryFindNode​(java.lang.Object searched,
                                                                      int maxDepth)
        Tries to find a node in the descendants of this node that has the same toString as the given value.
      • buildAscendantHierarchy

        public static ScopeHierarchyTreeItem buildAscendantHierarchy​(net.sourceforge.pmd.lang.ast.Node node)
        Gets the scope hierarchy of a node.
        Parameters:
        node - Node
        Returns:
        Root of the tree