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