Skip to content

Package io.github.qishr.cascara.lang.json.ast

Class JsonMapEntryNode

java.lang.Object
        io.github.qishr.cascara.lang.json.ast.JsonNode
                io.github.qishr.cascara.lang.json.ast.JsonMapEntryNode

All Implemented Interfaces:
    MapEntryAstNode<JsonNode>


public class JsonMapEntryNode
extends JsonNode

Represents the structural pairing of a key and a value in a JSON object.

Constructor Summary

Constructor Description
JsonMapEntryNode(int line, int column, JsonNode key, JsonNode value)
JsonMapEntryNode(JsonNode key, JsonNode value) Convenience constructor for programmatic node creation.

Method Summary

Modifier and Type Method Description
public JsonNode getKey()
public JsonNode getValue()
public void setRaw(JsonNode value)
public List<JsonNode> getChildren()

Methods inherited from JsonNode

getEndColumn, getEndLine, getComments, getStartColumn, getToken, setToken, equals, addComment, getStartLine, hashCode

Method Details

getKey

public JsonNode getKey()

Specified By:

MapEntryAstNode


getValue

public JsonNode getValue()

Specified By:

MapEntryAstNode


setRaw

public void setRaw(JsonNode value)


getChildren

public List<JsonNode> getChildren()

Specified By:

MapEntryAstNode