public final class NodeEditor extends Object
Modifier and Type | Method and Description |
---|---|
static List<PlanNode> |
findAllNodes(PlanNode root,
int types) |
static List<PlanNode> |
findAllNodes(PlanNode root,
int types,
int stopTypes)
Find all nodes of a type, starting at the root of a tree or subtree of
PlanNodes and searching downward, but not searching past nodes of type equal
to stopType.
|
static PlanNode |
findNodePreOrder(PlanNode root,
int types) |
static PlanNode |
findNodePreOrder(PlanNode root,
int types,
int stopTypes) |
static PlanNode |
findParent(PlanNode root,
int types) |
static PlanNode |
findParent(PlanNode root,
int types,
int stopTypes)
Return the first parent node of the given type stopping at the given nodes.
|
static void |
removeChildNode(PlanNode parent,
PlanNode child)
all of child's children become children of parent
|
public static final void removeChildNode(PlanNode parent, PlanNode child)
public static final PlanNode findNodePreOrder(PlanNode root, int types, int stopTypes)
public static final PlanNode findParent(PlanNode root, int types, int stopTypes)
root
- type
- stopTypes
- public static final List<PlanNode> findAllNodes(PlanNode root, int types, int stopTypes)
root
- the top node of the subtree, the point at which searching beginstypes
- the types of the node to search forstopTypes
- type of nodes not to search pastCopyright © 2019. All rights reserved.