public class TsonFormatImpl extends Object implements TsonFormat, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
FORMAT_NUMBER_TYPES |
| Constructor and Description |
|---|
TsonFormatImpl(net.thevpc.tson.impl.format.DefaultTsonFormatConfig config) |
| Modifier and Type | Method and Description |
|---|---|
TsonFormatBuilder |
builder() |
String |
format(TsonDocument document) |
String |
format(TsonElement element) |
void |
format(TsonElement element,
Writer sb) |
void |
formatAnnotation(TsonAnnotation a,
boolean showComments,
boolean showAnnotations,
Writer sb) |
void |
formatDocument(TsonDocument document,
Writer sb) |
void |
formatElement(TsonElement element,
boolean showComments,
boolean showAnnotations,
Writer sb) |
void |
formatElementCore(TsonElement element,
TsonAnnotation format,
Writer writer) |
public TsonFormatImpl(net.thevpc.tson.impl.format.DefaultTsonFormatConfig config)
public String format(TsonElement element)
format in interface TsonFormatpublic void format(TsonElement element, Writer sb) throws IOException
IOExceptionpublic String format(TsonDocument document)
format in interface TsonFormatpublic void formatDocument(TsonDocument document, Writer sb) throws IOException
IOExceptionpublic void formatAnnotation(TsonAnnotation a, boolean showComments, boolean showAnnotations, Writer sb) throws IOException
IOExceptionpublic void formatElement(TsonElement element, boolean showComments, boolean showAnnotations, Writer sb) throws IOException
IOExceptionpublic void formatElementCore(TsonElement element, TsonAnnotation format, Writer writer) throws IOException
IOExceptionpublic TsonFormatBuilder builder()
builder in interface TsonFormatCopyright © 2024 vpc open source initiative. All rights reserved.