ElementType - type of elementpublic static interface HierarchyProvider.Synchronous<ElementType>
| Modifier and Type | Method and Description |
|---|---|
List<? extends ElementType> |
getChildren(ElementType element,
boolean refresh)
Return the children of the given element.
|
ElementType |
getParent(ElementType element)
Return the parent of the given element, or null if this is a root element.
|
default void |
goThrough(ElementType element,
Consumer<ElementType> listener)
Go through the descendants of the given element, and call the listener for each element.
|
boolean |
hasChildren(ElementType element,
boolean refresh)
Return true if the given element has children.
|
boolean |
mayHaveChildren(ElementType element)
Return true if the given element MAY have children, false if it is not possible.
|
ElementType getParent(ElementType element)
boolean mayHaveChildren(ElementType element)
boolean hasChildren(ElementType element, boolean refresh)
List<? extends ElementType> getChildren(ElementType element, boolean refresh)
default void goThrough(ElementType element, Consumer<ElementType> listener)
Copyright © 2019. All rights reserved.