public interface ChildrenRelation
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(TreeNode childNode,
Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition,
boolean canReplace) |
ChildrenRelation |
clone(Map<QueryNode,TreeNode> newNodeIndex) |
boolean |
contains(TreeNode node) |
ChildrenRelation |
convertToBinaryChildrenRelation()
May return itself (no cloning)
|
ChildrenRelation |
convertToStandardChildrenRelation()
May return itself (no cloning)
|
Optional<TreeNode> |
getChild(BinaryOrderedOperatorNode.ArgumentPosition position) |
com.google.common.collect.ImmutableList<QueryNode> |
getChildQueryNodes() |
Stream<QueryNode> |
getChildQueryNodeStream() |
com.google.common.collect.ImmutableList<TreeNode> |
getChildren() |
Stream<TreeNode> |
getChildrenStream() |
Optional<BinaryOrderedOperatorNode.ArgumentPosition> |
getOptionalPosition(TreeNode childTreeNode) |
TreeNode |
getParent() |
void |
removeChild(TreeNode childNode) |
void |
replaceChild(TreeNode formerChild,
TreeNode newChild) |
TreeNode getParent()
com.google.common.collect.ImmutableList<TreeNode> getChildren()
boolean contains(TreeNode node)
void addChild(TreeNode childNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition, boolean canReplace) throws IllegalTreeUpdateException
IllegalTreeUpdateExceptionvoid removeChild(TreeNode childNode)
com.google.common.collect.ImmutableList<QueryNode> getChildQueryNodes()
Optional<BinaryOrderedOperatorNode.ArgumentPosition> getOptionalPosition(TreeNode childTreeNode)
Optional<TreeNode> getChild(BinaryOrderedOperatorNode.ArgumentPosition position)
ChildrenRelation clone(Map<QueryNode,TreeNode> newNodeIndex)
ChildrenRelation convertToBinaryChildrenRelation()
ChildrenRelation convertToStandardChildrenRelation()
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.