Class ScopeHierarchyTreeItem

  • All Implemented Interfaces:
    javafx.event.EventTarget

    public final class ScopeHierarchyTreeItem
    extends javafx.scene.control.TreeItem<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 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.
      Optional<ScopeHierarchyTreeItem> tryFindNode​(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
    • Method Detail

      • tryFindNode

        public Optional<ScopeHierarchyTreeItem> tryFindNode​(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