Class ScopeHierarchyTreeItem
- java.lang.Object
-
- javafx.scene.control.TreeItem<java.lang.Object>
-
- net.sourceforge.pmd.util.fxdesigner.util.controls.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
-
-
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
-
-
-
-
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
-
-