Block and inlines).
A node can have multiple children, and a parent (except for the root node).
| Modifier and Type | Field and Description |
|---|---|
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | |
| public void | |
| public Node | |
| public Node | |
| public Node | |
| public Node | |
| public Node | |
| public List | getSourceSpans()
Returns: the source spans of this node if included by the parser, an empty list otherwise |
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | setSourceSpans(List<SourceSpan>
the new source spans to set sourceSpans)Replace the current source spans with the provided list. |
| public String | |
| protected String | |
| public void |
| firstChild | back to summary |
|---|---|
| private Node firstChild | |
| lastChild | back to summary |
|---|---|
| private Node lastChild | |
| next | back to summary |
|---|---|
| private Node next | |
| parent | back to summary |
|---|---|
| private Node parent | |
| prev | back to summary |
|---|---|
| private Node prev | |
| sourceSpans | back to summary |
|---|---|
| private List<SourceSpan> sourceSpans | |
| Node | back to summary |
|---|---|
| public Node() | |
| accept | back to summary |
|---|---|
| public abstract void accept(Visitor visitor) | |
| addSourceSpan | back to summary |
|---|---|
| public void addSourceSpan(SourceSpan sourceSpan) Add a source span to the end of the list.
| |
| appendChild | back to summary |
|---|---|
| public void appendChild(Node child) | |
| getFirstChild | back to summary |
|---|---|
| public Node getFirstChild() | |
| getLastChild | back to summary |
|---|---|
| public Node getLastChild() | |
| getNext | back to summary |
|---|---|
| public Node getNext() | |
| getParent | back to summary |
|---|---|
| public Node getParent() | |
| getPrevious | back to summary |
|---|---|
| public Node getPrevious() | |
| getSourceSpans | back to summary |
|---|---|
public List
| |
| insertAfter | back to summary |
|---|---|
| public void insertAfter(Node sibling) | |
| insertBefore | back to summary |
|---|---|
| public void insertBefore(Node sibling) | |
| prependChild | back to summary |
|---|---|
| public void prependChild(Node child) | |
| setParent | back to summary |
|---|---|
| protected void setParent(Node parent) | |
| setSourceSpans | back to summary |
|---|---|
| public void setSourceSpans(List<SourceSpan> sourceSpans) Replace the current source spans with the provided list.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toStringAttributes | back to summary |
|---|---|
| protected String toStringAttributes() | |
| unlink | back to summary |
|---|---|
| public void unlink() | |