Package io.github.qishr.cascara.common.lang.plain
Class PlainSequenceNode
java.lang.Object
io.github.qishr.cascara.common.lang.plain.PlainNode
io.github.qishr.cascara.common.lang.plain.PlainSequenceNode
All Implemented Interfaces:
SequenceAstNode<PlainNode>
public final class PlainSequenceNode
extends PlainNode
Constructor Summary
| Constructor | Description |
|---|---|
| PlainSequenceNode() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public int | size() | |
| public boolean | isEmpty() | |
| public PlainSequenceNode | clear() | |
| public PlainSequenceNode | add(PlainNode node) | |
| public PlainSequenceNode | remove(PlainNode node) | |
| public PlainSequenceNode | remove(int index) | |
| public PlainNode | get(int index) | |
| public PlainNode | getFirst() | |
| public PlainNode | getLast() | |
| public PlainMapNode | getMap(int i) | |
| public PlainSequenceNode | getSequence(int i) | |
| public PlainScalarNode | getScalar(int i) | |
| public List<PlainNode> | getElements() | |
| public List<? extends AstNode> | getChildren() | |
| public List<CommentAstNode> | getComments() | |
| public Iterator<PlainNode> | iterator() | Returns Iterator instance |
Methods inherited from PlainNode
getEndColumn, getEndLine, getStartColumn, getToken, getStartLine
Method Details
size
public int size()
Specified By:
isEmpty
public boolean isEmpty()
Specified By:
clear
public PlainSequenceNode clear()
Specified By:
add
public PlainSequenceNode add(PlainNode node)
remove
public PlainSequenceNode remove(PlainNode node)
remove
public PlainSequenceNode remove(int index)
Specified By:
get
public PlainNode get(int index)
Specified By:
getFirst
public PlainNode getFirst()
Specified By:
getLast
public PlainNode getLast()
Specified By:
getMap
public PlainMapNode getMap(int i)
getSequence
public PlainSequenceNode getSequence(int i)
getScalar
public PlainScalarNode getScalar(int i)
getElements
public List<PlainNode> getElements()
Specified By:
getChildren
public List<? extends AstNode> getChildren()
getComments
public List<CommentAstNode> getComments()
iterator
public Iterator<PlainNode> iterator()
Returns Iterator instance
Specified By: