public class DefaultRootNode extends DefaultNode
Node.ChildrenArg, Node.DescendantsArg, Node.RemoveArg, Node.ShiftArg
tree
Constructor and Description |
---|
DefaultRootNode(Root tree) |
DefaultRootNode(Root tree,
Node parent) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
getDescendants() |
java.util.List<Node> |
getDescendants(java.util.EnumSet<Node.DescendantsArg> args) |
java.util.List<Node> |
getDescendants(java.util.EnumSet<Node.DescendantsArg> args,
Node except) |
java.util.List<Node> |
getDescendantsF() |
protected java.util.List<Node> |
getDescendantsInner(java.util.EnumSet<Node.DescendantsArg> args,
java.util.Optional<Node> except) |
java.util.Optional<Node> |
getNextNode() |
java.util.Optional<Node> |
getPrevNode() |
boolean |
isDescendantOf(Node node) |
boolean |
isRoot() |
boolean |
precedes(Node anotherNode) |
createChild, createNode, equals, getAddress, getBundle, getChildren, getChildren, getDeprel, getDeps, getDocument, getFeats, getForm, getHead, getId, getLemma, getMisc, getNextSibling, getOrd, getParent, getPrevSibling, getRoot, getSiblings, getUpos, getXpos, hashCode, remove, remove, setDeprel, setDeps, setFeats, setForm, setHead, setLemma, setMisc, setNextSibling, setOrd, setParent, setParent, setUpos, setXpos, shiftAfterNode, shiftAfterNode, shiftAfterSubtree, shiftAfterSubtree, shiftBeforeNode, shiftBeforeNode, shiftBeforeSubtree, shiftBeforeSubtree, toString
public DefaultRootNode(Root tree)
public java.util.List<Node> getDescendants()
getDescendants
in interface Node
getDescendants
in class DefaultNode
public java.util.List<Node> getDescendants(java.util.EnumSet<Node.DescendantsArg> args)
getDescendants
in interface Node
getDescendants
in class DefaultNode
args
- args to augment resulting collectionpublic java.util.List<Node> getDescendants(java.util.EnumSet<Node.DescendantsArg> args, Node except)
getDescendants
in interface Node
getDescendants
in class DefaultNode
args
- args to augment resulting collectionexcept
- the resulting collection without this nodepublic java.util.List<Node> getDescendantsF()
getDescendantsF
in class DefaultNode
protected java.util.List<Node> getDescendantsInner(java.util.EnumSet<Node.DescendantsArg> args, java.util.Optional<Node> except)
getDescendantsInner
in class DefaultNode
public boolean isDescendantOf(Node node)
isDescendantOf
in interface Node
isDescendantOf
in class DefaultNode
node
- node we want to find out if there is descendat relationpublic java.util.Optional<Node> getPrevNode()
getPrevNode
in interface Node
getPrevNode
in class DefaultNode
public boolean isRoot()
isRoot
in interface Node
isRoot
in class DefaultNode
public boolean precedes(Node anotherNode)
precedes
in interface Node
precedes
in class DefaultNode
anotherNode
- anotherNode we want to find out precedes relationpublic java.util.Optional<Node> getNextNode()
getNextNode
in interface Node
getNextNode
in class DefaultNode