Package io.github.qishr.cascara.lang.json.processor
Class AbstractJsonProcessor
java.lang.Object
io.github.qishr.cascara.lang.json.processor.AbstractJsonProcessor
All Implemented Interfaces:
Processor
Direct Known Subtypes:
JsonPullParser, JsonPushParser, JsonAstParser, JsonTokenizer, JsonConverter, JsonEmitter
public abstract class AbstractJsonProcessor
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| protected JsonOptions | options | |
| protected Reporter | reporter |
Constructor Summary
| Constructor | Description |
|---|---|
| AbstractJsonProcessor() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| protected abstract P | self() | |
| public Properties | getServiceProperties() | |
| public ContentType | getContentType() | |
| public P | setReporter(Reporter reporter) | Sets the reporter for communicating warnings or errors. |
| public P | setOptions(LanguageOptions<?> options) | Sets the language-specific options (e.g., indentation, Unicode support). |
| public JsonOptions | getOptions() | |
| public Reporter | getReporter() | |
| public SemVer | getVersion() | |
| public String | getTextResource(String resourcePath) |
Field Details
options
protected JsonOptions options
reporter
protected Reporter reporter
Method Details
self
protected abstract P self()
getServiceProperties
public Properties getServiceProperties()
getContentType
public ContentType getContentType()
setReporter
public P setReporter(Reporter reporter)
Sets the reporter for communicating warnings or errors.
Specified By:
setOptions
public P setOptions(LanguageOptions<?> options)
Sets the language-specific options (e.g., indentation, Unicode support).
Specified By:
getOptions
public JsonOptions getOptions()
getReporter
public Reporter getReporter()
getVersion
public SemVer getVersion()
getTextResource
public String getTextResource(String resourcePath)