public class StandardChildrenRelation extends Object implements ChildrenRelation
| Modifier | Constructor and Description |
|---|---|
protected |
StandardChildrenRelation(TreeNode parent) |
| 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) |
protected StandardChildrenRelation(TreeNode parent)
public TreeNode getParent()
getParent in interface ChildrenRelationpublic com.google.common.collect.ImmutableList<TreeNode> getChildren()
getChildren in interface ChildrenRelationpublic Stream<TreeNode> getChildrenStream()
getChildrenStream in interface ChildrenRelationpublic boolean contains(TreeNode node)
contains in interface ChildrenRelationpublic void addChild(TreeNode childNode, Optional<BinaryOrderedOperatorNode.ArgumentPosition> optionalPosition, boolean canReplace)
addChild in interface ChildrenRelationpublic void replaceChild(TreeNode formerChild, TreeNode newChild)
replaceChild in interface ChildrenRelationpublic void removeChild(TreeNode childNode)
removeChild in interface ChildrenRelationpublic com.google.common.collect.ImmutableList<QueryNode> getChildQueryNodes()
getChildQueryNodes in interface ChildrenRelationpublic Stream<QueryNode> getChildQueryNodeStream()
getChildQueryNodeStream in interface ChildrenRelationpublic Optional<BinaryOrderedOperatorNode.ArgumentPosition> getOptionalPosition(TreeNode childTreeNode)
getOptionalPosition in interface ChildrenRelationpublic Optional<TreeNode> getChild(BinaryOrderedOperatorNode.ArgumentPosition position)
getChild in interface ChildrenRelationpublic ChildrenRelation clone(Map<QueryNode,TreeNode> newNodeIndex)
clone in interface ChildrenRelationpublic ChildrenRelation convertToBinaryChildrenRelation()
ChildrenRelationconvertToBinaryChildrenRelation in interface ChildrenRelationpublic ChildrenRelation convertToStandardChildrenRelation()
ChildrenRelationconvertToStandardChildrenRelation in interface ChildrenRelationCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.