T - the type of the values of the leaves of the tree.public final class TreeInternalNode<T> extends AbstractTreeNode<T>
AbstractTreeNode children (at least 1),
linked by a logical operator.| Modifier and Type | Field and Description |
|---|---|
private List<AbstractTreeNode<T>> |
_children |
private Query.LogicalOperator |
_operator |
| Constructor and Description |
|---|
TreeInternalNode(List<AbstractTreeNode<T>> children,
Query.LogicalOperator operator)
Constructs a new internal node in a tree data structure with the given children
and the given logical operator to link these children.
|
| Modifier and Type | Method and Description |
|---|---|
List<AbstractTreeNode<T>> |
getChildren()
Gets the children
|
Query.LogicalOperator |
getLogicalOperator()
Gets the logical operator
|
getFlatLeaves, walkprivate List<AbstractTreeNode<T>> _children
private Query.LogicalOperator _operator
public TreeInternalNode(List<AbstractTreeNode<T>> children, Query.LogicalOperator operator)
children - the children of the internal nodeoperator - the logical operator to link the childrenpublic List<AbstractTreeNode<T>> getChildren()
public Query.LogicalOperator getLogicalOperator()