Package org.yecht
Class Emitter
- java.lang.Object
-
- org.yecht.Emitter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Emitter.Node
-
Field Summary
Fields Modifier and Type Field Description String
anchor_format
int
best_width
Object
bonus
boolean
explicit_typing
boolean
headless
int
indent
int
level
boolean
sort_keys
DocStage
stage
ScalarStyle
style
boolean
use_header
boolean
use_version
-
Constructor Summary
Constructors Constructor Description Emitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLevel(int len, LevelStatus status)
void
clear()
Level
currentLevel()
void
emit(Object n)
void
emit1Quoted(int width, Pointer _str, int len)
void
emit2Quoted(int width, Pointer _str, int len)
void
emitEnd()
void
emitFolded(int width, int keep_nl, Pointer _str, int len)
void
emitIndent()
void
emitItem(Object n)
void
emitLiteral(int keep_nl, Pointer _str, int len)
void
emitMap(String tag, MapStyle style)
void
emitScalar(String tag, ScalarStyle force_style, int force_indent, int force_width, int keep_nl, Pointer _str, int len)
void
emitSeq(String tag, SeqStyle style)
void
emitTag(String tag, String ignore)
void
escape(Pointer _src, int len)
void
flush(int check_room)
void
handler(EmitterHandler hdlr)
long
markNode(Object n)
void
outputHandler(OutputHandler hdlr)
Level
parentLevel()
void
popLevel()
void
resetLevels()
int
scanScalar(int req_width, Pointer _cursor, int len)
void
write(Pointer _str, int _len)
-
-
-
Field Detail
-
headless
public boolean headless
-
use_header
public boolean use_header
-
use_version
public boolean use_version
-
sort_keys
public boolean sort_keys
-
anchor_format
public String anchor_format
-
explicit_typing
public boolean explicit_typing
-
best_width
public int best_width
-
style
public ScalarStyle style
-
stage
public DocStage stage
-
level
public int level
-
indent
public int indent
-
bonus
public Object bonus
-
-
Method Detail
-
currentLevel
public Level currentLevel()
-
parentLevel
public Level parentLevel()
-
popLevel
public void popLevel()
-
addLevel
public void addLevel(int len, LevelStatus status)
-
resetLevels
public void resetLevels()
-
handler
public void handler(EmitterHandler hdlr)
-
outputHandler
public void outputHandler(OutputHandler hdlr)
-
clear
public void clear()
-
write
public void write(Pointer _str, int _len)
-
flush
public void flush(int check_room)
-
emit
public void emit(Object n)
-
emitIndent
public void emitIndent()
-
scanScalar
public int scanScalar(int req_width, Pointer _cursor, int len)
-
emitScalar
public void emitScalar(String tag, ScalarStyle force_style, int force_indent, int force_width, int keep_nl, Pointer _str, int len)
-
escape
public void escape(Pointer _src, int len)
-
emit1Quoted
public void emit1Quoted(int width, Pointer _str, int len)
-
emit2Quoted
public void emit2Quoted(int width, Pointer _str, int len)
-
emitLiteral
public void emitLiteral(int keep_nl, Pointer _str, int len)
-
emitFolded
public void emitFolded(int width, int keep_nl, Pointer _str, int len)
-
emitItem
public void emitItem(Object n)
-
emitEnd
public void emitEnd()
-
markNode
public long markNode(Object n)
-
-