public class JsonPrinter extends ObjectPrinter<ca.uqac.lif.json.JsonElement>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_KEY |
static java.lang.String |
CONTENT_KEY |
m_handlers, m_reflectionHandler, m_usePrintable| Constructor and Description |
|---|
JsonPrinter() |
| Modifier and Type | Method and Description |
|---|---|
ca.uqac.lif.json.JsonElement |
wrap(java.lang.Object o,
ca.uqac.lif.json.JsonElement t)
Wraps an object into a structure that contains its type declaration
and its printed contents
|
print, reset, usesPrintablepublic static final transient java.lang.String CLASS_KEY
public static final transient java.lang.String CONTENT_KEY
public ca.uqac.lif.json.JsonElement wrap(java.lang.Object o,
ca.uqac.lif.json.JsonElement t)
throws PrintException
ObjectPrinterwrap in class ObjectPrinter<ca.uqac.lif.json.JsonElement>o - The objectt - The object's printed contentsPrintException - Thrown if the print operation caused an errorCopyright © Sylvain HallĂ©. All Rights Reserved.