Skip to content

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

Class JsonNodeFactory

java.lang.Object
        io.github.qishr.cascara.lang.json.ast.JsonNodeFactory

All Implemented Interfaces:
    AstNodeFactory<JsonNode, JsonScalar, JsonArray, JsonObject, JsonProperty, String>


public class JsonNodeFactory

Constructor Summary

Constructor Description
JsonNodeFactory()

Method Summary

Modifier and Type Method Description
public JsonScalar createScalarNode(Object jvmValue)
public JsonScalar createScalarNode(Object jvmValue, QuoteStyle quoteStyle)
public JsonScalar createScalarNode(Object jvmValue, QuoteStyle quoteStyle, LanguageOptions<?> options)
public String createKey(Object key)
public JsonArray createSequenceNode()
public JsonObject createMapNode()

Method Details

createScalarNode

public JsonScalar createScalarNode(Object jvmValue)

Specified By:

AstNodeFactory


createScalarNode

public JsonScalar createScalarNode(Object jvmValue, QuoteStyle quoteStyle)

Specified By:

AstNodeFactory


createScalarNode

public JsonScalar createScalarNode(Object jvmValue, QuoteStyle quoteStyle, LanguageOptions<?> options)

Specified By:

AstNodeFactory


createKey

public String createKey(Object key)

Specified By:

AstNodeFactory


createSequenceNode

public JsonArray createSequenceNode()

Specified By:

AstNodeFactory


createMapNode

public JsonObject createMapNode()

Specified By:

AstNodeFactory