Package io.github.qishr.cascara.common.lang.generic
Class GenericAstMap
java.lang.Object
io.github.qishr.cascara.common.lang.generic.GenericAstNode
io.github.qishr.cascara.common.lang.generic.GenericAstMap
All Implemented Interfaces:
MapAstNode<AstNode, AstNode, GenericAstMapEntry>
public final class GenericAstMap
extends GenericAstNode
Constructor Summary
| Constructor | Description |
|---|---|
| GenericAstMap() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | isEmpty() | |
| public int | size() | |
| public boolean | containsKey(Object key) | |
| public Set<AstNode> | keySet() | |
| public AstNode | get(Object key) | |
| public GenericAstMapEntry | getEntry(Object key) | |
| public GenericAstMapEntry | getEntry(int i) | |
| public List<GenericAstMapEntry> | getEntries() | |
| public Set<GenericAstMapEntry> | entrySet() | |
| public List<AstNode> | values() | |
| public GenericAstMap | put(AstNode key, AstNode value) | |
| public GenericAstMap | remove(AstNode key) | |
| public GenericAstMap | put(String key, String value) | |
| public GenericAstMap | put(String key, Number value) | |
| public GenericAstMap | put(String key, AstNode value) | |
| public GenericAstMap | remove(String key) | |
| public List<GenericAstMapEntry> | getChildren() | |
| public List<CommentAstNode> | getComments() | |
| public GenericAstMap | getMap(Object key) | |
| public SequenceAstNode<AstNode> | getSequence(Object key) | |
| public ScalarAstNode<AstNode> | getScalar(Object key) | |
| public Iterator<GenericAstMapEntry> | iterator() | Returns Iterator instance |
Methods inherited from GenericAstNode
getEndColumn, getEndLine, getStartColumn, getToken, getStartLine
Method Details
isEmpty
public boolean isEmpty()
Specified By:
size
public int size()
Specified By:
containsKey
public boolean containsKey(Object key)
Specified By:
keySet
Specified By:
get
public AstNode get(Object key)
Specified By:
getEntry
public GenericAstMapEntry getEntry(Object key)
Specified By:
getEntry
public GenericAstMapEntry getEntry(int i)
Specified By:
getEntries
public List<GenericAstMapEntry> getEntries()
Specified By:
entrySet
public Set<GenericAstMapEntry> entrySet()
Specified By:
values
Specified By:
put
public GenericAstMap put(AstNode key, AstNode value)
remove
public GenericAstMap remove(AstNode key)
put
public GenericAstMap put(String key, String value)
Specified By:
put
public GenericAstMap put(String key, Number value)
put
public GenericAstMap put(String key, AstNode value)
remove
public GenericAstMap remove(String key)
Specified By:
getChildren
public List<GenericAstMapEntry> getChildren()
Specified By:
getComments
public List<CommentAstNode> getComments()
getMap
@io.github.qishr.cascara.common.annotation.Nullable
public GenericAstMap getMap(Object key)
Specified By:
getSequence
@io.github.qishr.cascara.common.annotation.Nullable
public SequenceAstNode<AstNode> getSequence(Object key)
Specified By:
getScalar
@io.github.qishr.cascara.common.annotation.Nullable
public ScalarAstNode<AstNode> getScalar(Object key)
Specified By:
iterator
public Iterator<GenericAstMapEntry> iterator()
Returns Iterator instance