Skip to content

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:

MapAstNode


size

public int size()

Specified By:

MapAstNode


containsKey

public boolean containsKey(Object key)

Specified By:

MapAstNode


keySet

public Set<AstNode> keySet()

Specified By:

MapAstNode


get

public AstNode get(Object key)

Specified By:

MapAstNode


getEntry

public GenericAstMapEntry getEntry(Object key)

Specified By:

MapAstNode


getEntry

public GenericAstMapEntry getEntry(int i)

Specified By:

MapAstNode


getEntries

public List<GenericAstMapEntry> getEntries()

Specified By:

MapAstNode


entrySet

public Set<GenericAstMapEntry> entrySet()

Specified By:

MapAstNode


values

public List<AstNode> values()

Specified By:

MapAstNode


put

public GenericAstMap put(AstNode key, AstNode value)


remove

public GenericAstMap remove(AstNode key)


put

public GenericAstMap put(String key, String value)

Specified By:

MapAstNode


put

public GenericAstMap put(String key, Number value)


put

public GenericAstMap put(String key, AstNode value)


remove

public GenericAstMap remove(String key)

Specified By:

MapAstNode


getChildren

public List<GenericAstMapEntry> getChildren()

Specified By:

MapAstNode


getComments

public List<CommentAstNode> getComments()


getMap

@io.github.qishr.cascara.common.annotation.Nullable
public GenericAstMap getMap(Object key)

Specified By:

MapAstNode


getSequence

@io.github.qishr.cascara.common.annotation.Nullable
public SequenceAstNode<AstNode> getSequence(Object key)

Specified By:

MapAstNode


getScalar

@io.github.qishr.cascara.common.annotation.Nullable
public ScalarAstNode<AstNode> getScalar(Object key)

Specified By:

MapAstNode


iterator

public Iterator<GenericAstMapEntry> iterator()

Returns Iterator instance