Skip to content

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

Class JsonOptions

java.lang.Object
        io.github.qishr.cascara.common.lang.LanguageOptions<io.github.qishr.cascara.lang.json.JsonOptions>
                io.github.qishr.cascara.lang.json.JsonOptions


public class JsonOptions
extends LanguageOptions<JsonOptions>

Field Summary

Modifier and Type Field Description
protected boolean insertSpaces

Constructor Summary

Constructor Description
JsonOptions()

Method Summary

Modifier and Type Method Description
public JsonOptions setAllowUnicode(boolean val) Sets whether unicode characters are allowed in scalars.
public JsonOptions setStrict(boolean val)
public JsonOptions setInsertSpaces(boolean val) Sets whether to use spaces or tabs for indentation.
public boolean isAllowUnicode()
public boolean isStrict()
public boolean isInsertSpaces()

Methods inherited from LanguageOptions

setIndentSize, getIndentSize

Field Details

insertSpaces

protected boolean insertSpaces


Method Details

setAllowUnicode

public JsonOptions setAllowUnicode(boolean val)

Sets whether unicode characters are allowed in scalars.


setStrict

public JsonOptions setStrict(boolean val)


setInsertSpaces

public JsonOptions setInsertSpaces(boolean val)

Sets whether to use spaces or tabs for indentation.


isAllowUnicode

public boolean isAllowUnicode()


isStrict

public boolean isStrict()


isInsertSpaces

public boolean isInsertSpaces()