org.yecht
Class Emitter

java.lang.Object
  extended by org.yecht.Emitter

public class Emitter
extends Object

Author:
Ola Bini

Nested Class Summary
static class Emitter.Node
           
 
Field Summary
 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
Emitter()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

Emitter

public Emitter()
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)

emitTag

public void emitTag(String tag,
                    String ignore)

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)

emitSeq

public void emitSeq(String tag,
                    SeqStyle style)

emitMap

public void emitMap(String tag,
                    MapStyle style)

emitItem

public void emitItem(Object n)

emitEnd

public void emitEnd()

markNode

public long markNode(Object n)


Copyright © 2013. All Rights Reserved.