public class JsonStreamFormatGenerator extends Object
AbstractJsonStreamFormat.| Modifier and Type | Field and Description |
|---|---|
protected EmitContext |
context
The current context.
|
protected ModelDeclaration |
model
The target model.
|
| Constructor and Description |
|---|
JsonStreamFormatGenerator(EmitContext context,
ModelDeclaration model,
JsonStreamSettings streamSettings,
JsonFormatSettings formatSettings,
JsonPropertySettings fieldDefaultSettings)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
emit()
Emits an implementation of
AbstractJsonStreamFormat class as a Java compilation unit. |
protected final EmitContext context
protected final ModelDeclaration model
public JsonStreamFormatGenerator(EmitContext context, ModelDeclaration model, JsonStreamSettings streamSettings, JsonFormatSettings formatSettings, JsonPropertySettings fieldDefaultSettings)
context - the current contextmodel - the target modelstreamSettings - the JSON I/O stream settingsformatSettings - the JSON format settingsfieldDefaultSettings - the field default settingsprotected void emit()
throws IOException
AbstractJsonStreamFormat class as a Java compilation unit.IOException - if I/O error was occurred while emitting the compilation unitCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.