public interface AnnotationTreeNode<T extends AnnotationFS>
| Modifier and Type | Method and Description | 
|---|---|
| T | get()Return the annotation for this node. | 
| AnnotationTreeNode<T> | getChild(int i)Get the i-th child of this node. | 
| int | getChildCount()Get the number of children this node has. | 
| ArrayList<AnnotationTreeNode<T>> | getChildren()Get all children of this node as an ArrayList. | 
| AnnotationTreeNode<T> | getNextSibling()Get the next sibling (to the right) of this node. | 
| AnnotationTreeNode<T> | getParent()Get the parent of this node. | 
| AnnotationTreeNode<T> | getPreviousSibling()Get the previous sibling (to the left) of this node. | 
AnnotationTreeNode<T> getParent()
null if this node has no parent (root).int getChildCount()
AnnotationTreeNode<T> getChild(int i) throws CASRuntimeException
i - The index of the child.CASRuntimeException - If i < 0 or i >= getChildCount().AnnotationTreeNode<T> getNextSibling()
null if no such sibling exists.AnnotationTreeNode<T> getPreviousSibling()
null if no such sibling exists.ArrayList<AnnotationTreeNode<T>> getChildren()
T get()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.