The JsonWriteContext is used by the pretty printer for handling of the whitespace between tokens, and by the generator for verifying whether it's valid to write a given token. The writeStartSexp method in the IonGenerator will enter a "sexp context", so we need a new state in the write context to track that. Sexp handling is modeled after arrays.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public IonWriteContext | |
| public IonWriteContext | |
| public IonWriteContext | |
| public static IonWriteContext | |
| public final boolean | |
| public int |
| STATUS_OK_AFTER_SEXP_SEPARATOR | back to summary |
|---|---|
| public static final int STATUS_OK_AFTER_SEXP_SEPARATOR | |
| TYPE_SEXP | back to summary |
|---|---|
| protected static final int TYPE_SEXP | |
| IonWriteContext | back to summary |
|---|---|
| protected IonWriteContext(int type, IonWriteContext parent, DupDetector dups) | |
| createChildArrayContext | back to summary |
|---|---|
| public IonWriteContext createChildArrayContext() Overrides com.
| |
| createChildObjectContext | back to summary |
|---|---|
| public IonWriteContext createChildObjectContext() Overrides com.
| |
| createChildSexpContext | back to summary |
|---|---|
| public IonWriteContext createChildSexpContext() | |
| createRootContext | back to summary |
|---|---|
| public static IonWriteContext createRootContext(DupDetector dd) Hides com. | |
| inSexp | back to summary |
|---|---|
| public final boolean inSexp() | |
| writeValue | back to summary |
|---|---|
| public int writeValue() Overrides com.
| |