org.jvyamlb
Class EmitterImpl.EmitterEnvironment

java.lang.Object
  extended by org.jvyamlb.EmitterImpl.EmitterEnvironment
Enclosing class:
EmitterImpl

private static class EmitterImpl.EmitterEnvironment
extends java.lang.Object


Field Summary
 EmitterImpl.ScalarAnalysis analysis
           
 int bestIndent
           
 org.jruby.util.ByteList bestLinebreak
           
 int bestWidth
           
 boolean canonical
           
 int column
           
 EmitterImpl emitter
           
 Event event
           
 java.util.List events
           
 int flowLevel
           
 int indent
           
 boolean indentation
           
 java.util.List indents
           
 boolean isVersion10
           
 int line
           
 boolean mappingContext
           
 java.lang.String preparedAnchor
           
 java.lang.String preparedTag
           
 boolean rootContext
           
 boolean sequenceContext
           
 boolean simpleKeyContext
           
 int state
           
 java.util.List states
           
 char style
           
 java.util.Map tagPrefixes
           
 boolean whitespace
           
 
Constructor Summary
private EmitterImpl.EmitterEnvironment()
           
 
Method Summary
private  boolean checkEmptyDocument()
           
private  boolean checkEmptyMapping()
           
private  boolean checkEmptySequence()
           
private  boolean checkSimpleKey()
           
private  char chooseScalarStyle()
           
private  void expectAlias()
           
private  void expectBlockMapping()
           
 void expectBlockMappingKey(boolean first)
           
 void expectBlockMappingSimpleValue()
           
 void expectBlockMappingValue()
           
private  void expectBlockSequence()
           
 void expectBlockSequenceItem(boolean first)
           
 void expectDocumentEnd()
           
 void expectDocumentRoot()
           
 void expectDocumentStart(boolean first)
           
 void expectFirstBlockMappingKey()
           
 void expectFirstFlowMappingKey()
           
 void expectFirstFlowSequenceItem()
           
private  void expectFlowMapping()
           
 void expectFlowMappingKey()
           
 void expectFlowMappingSimpleValue()
           
 void expectFlowMappingValue()
           
private  void expectFlowSequence()
           
 void expectFlowSequenceItem()
           
private  void expectNode(boolean root, boolean sequence, boolean mapping, boolean simpleKey)
           
 void expectNothing()
           
private  void expectScalar()
           
 void expectStreamStart()
           
private  void increaseIndent(boolean flow, boolean indentless)
           
private  boolean needEvents(int count)
           
 boolean needMoreEvents()
           
private  void processAnchor(org.jruby.util.ByteList indicator)
           
private  void processScalar()
           
private  void processTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

states

public java.util.List states

state

public int state

events

public java.util.List events

event

public Event event

flowLevel

public int flowLevel

indents

public java.util.List indents

indent

public int indent

rootContext

public boolean rootContext

sequenceContext

public boolean sequenceContext

mappingContext

public boolean mappingContext

simpleKeyContext

public boolean simpleKeyContext

line

public int line

column

public int column

whitespace

public boolean whitespace

indentation

public boolean indentation

canonical

public boolean canonical

bestIndent

public int bestIndent

bestWidth

public int bestWidth

bestLinebreak

public org.jruby.util.ByteList bestLinebreak

tagPrefixes

public java.util.Map tagPrefixes

preparedAnchor

public java.lang.String preparedAnchor

preparedTag

public java.lang.String preparedTag

analysis

public EmitterImpl.ScalarAnalysis analysis

style

public char style

emitter

public EmitterImpl emitter

isVersion10

public boolean isVersion10
Constructor Detail

EmitterImpl.EmitterEnvironment

private EmitterImpl.EmitterEnvironment()
Method Detail

needMoreEvents

public boolean needMoreEvents()

needEvents

private boolean needEvents(int count)

increaseIndent

private void increaseIndent(boolean flow,
                            boolean indentless)

expectStreamStart

public void expectStreamStart()

expectNothing

public void expectNothing()

expectDocumentStart

public void expectDocumentStart(boolean first)
                         throws java.io.IOException
Throws:
java.io.IOException

expectDocumentRoot

public void expectDocumentRoot()
                        throws java.io.IOException
Throws:
java.io.IOException

expectDocumentEnd

public void expectDocumentEnd()
                       throws java.io.IOException
Throws:
java.io.IOException

expectFirstFlowSequenceItem

public void expectFirstFlowSequenceItem()
                                 throws java.io.IOException
Throws:
java.io.IOException

expectFlowSequenceItem

public void expectFlowSequenceItem()
                            throws java.io.IOException
Throws:
java.io.IOException

expectFirstFlowMappingKey

public void expectFirstFlowMappingKey()
                               throws java.io.IOException
Throws:
java.io.IOException

expectFlowMappingSimpleValue

public void expectFlowMappingSimpleValue()
                                  throws java.io.IOException
Throws:
java.io.IOException

expectFlowMappingValue

public void expectFlowMappingValue()
                            throws java.io.IOException
Throws:
java.io.IOException

expectFlowMappingKey

public void expectFlowMappingKey()
                          throws java.io.IOException
Throws:
java.io.IOException

expectBlockSequenceItem

public void expectBlockSequenceItem(boolean first)
                             throws java.io.IOException
Throws:
java.io.IOException

expectFirstBlockMappingKey

public void expectFirstBlockMappingKey()
                                throws java.io.IOException
Throws:
java.io.IOException

expectBlockMappingSimpleValue

public void expectBlockMappingSimpleValue()
                                   throws java.io.IOException
Throws:
java.io.IOException

expectBlockMappingValue

public void expectBlockMappingValue()
                             throws java.io.IOException
Throws:
java.io.IOException

expectBlockMappingKey

public void expectBlockMappingKey(boolean first)
                           throws java.io.IOException
Throws:
java.io.IOException

expectNode

private void expectNode(boolean root,
                        boolean sequence,
                        boolean mapping,
                        boolean simpleKey)
                 throws java.io.IOException
Throws:
java.io.IOException

expectAlias

private void expectAlias()
                  throws java.io.IOException
Throws:
java.io.IOException

expectScalar

private void expectScalar()
                   throws java.io.IOException
Throws:
java.io.IOException

expectFlowSequence

private void expectFlowSequence()
                         throws java.io.IOException
Throws:
java.io.IOException

expectBlockSequence

private void expectBlockSequence()
                          throws java.io.IOException
Throws:
java.io.IOException

expectFlowMapping

private void expectFlowMapping()
                        throws java.io.IOException
Throws:
java.io.IOException

expectBlockMapping

private void expectBlockMapping()
                         throws java.io.IOException
Throws:
java.io.IOException

checkEmptySequence

private boolean checkEmptySequence()

checkEmptyMapping

private boolean checkEmptyMapping()

checkEmptyDocument

private boolean checkEmptyDocument()

checkSimpleKey

private boolean checkSimpleKey()

processAnchor

private void processAnchor(org.jruby.util.ByteList indicator)
                    throws java.io.IOException
Throws:
java.io.IOException

processTag

private void processTag()
                 throws java.io.IOException
Throws:
java.io.IOException

chooseScalarStyle

private char chooseScalarStyle()

processScalar

private void processScalar()
                    throws java.io.IOException
Throws:
java.io.IOException