Package io.github.qishr.cascara.lang.json.ast
Class JsonSequenceNode
java.lang.Object
io.github.qishr.cascara.lang.json.ast.JsonNode
io.github.qishr.cascara.lang.json.ast.JsonSequenceNode
All Implemented Interfaces:
SequenceAstNode<JsonNode>
public class JsonSequenceNode
extends JsonNode
Constructor Summary
| Constructor | Description |
|---|---|
| JsonSequenceNode() | |
| JsonSequenceNode(int line, int column, URI uri) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public JsonSequenceNode | add(JsonNode item) | |
| public JsonSequenceNode | remove(int index) | |
| public void | clear() | |
| public int | size() | |
| public JsonNode | get(int index) | |
| public List<JsonNode> | getElements() | |
| public List<JsonNode> | getChildren() | |
| public JsonSequenceNode | remove(JsonNode node) | |
| public Iterator<JsonNode> | iterator() | Returns Iterator instance |
Methods inherited from JsonNode
getEndColumn, getEndLine, getComments, getStartColumn, getToken, setToken, equals, addComment, getStartLine, hashCode
Method Details
add
public JsonSequenceNode add(JsonNode item)
remove
public JsonSequenceNode remove(int index)
Specified By:
clear
public void clear()
Specified By:
size
public int size()
Specified By:
get
public JsonNode get(int index)
Specified By:
getElements
public List<JsonNode> getElements()
Specified By:
getChildren
public List<JsonNode> getChildren()
remove
public JsonSequenceNode remove(JsonNode node)
iterator
public Iterator<JsonNode> iterator()
Returns Iterator instance
Specified By: