org.jvyamlb
Class PositioningComposerImpl

java.lang.Object
  extended by org.jvyamlb.ComposerImpl
      extended by org.jvyamlb.PositioningComposerImpl
All Implemented Interfaces:
Composer, Positionable, PositioningComposer

public class PositioningComposerImpl
extends ComposerImpl
implements PositioningComposer

Author:
Ola Bini

Field Summary
 
Fields inherited from class org.jvyamlb.ComposerImpl
parser
 
Constructor Summary
PositioningComposerImpl(PositioningParser parser, Resolver resolver)
           
 
Method Summary
protected  void composerException(java.lang.String when, java.lang.String what, java.lang.String note, Event e)
           
protected  Node createMapping(java.lang.String tag, java.util.Map value, boolean flowStyle, Event e)
           
protected  Node createSequence(java.lang.String tag, java.util.List value, boolean flowStyle, Event e)
           
protected  void finalizeMapping(Node node, Event e)
           
protected  void finalizeSequence(Node node, Event e)
           
 Position getPosition()
           
 Position.Range getRange()
           
protected  Node getScalar(java.lang.String tag, org.jruby.util.ByteList value, char style, Event e)
           
 
Methods inherited from class org.jvyamlb.ComposerImpl
checkNode, composeDocument, composeNode, eachNode, getNode, iterator, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jvyamlb.Composer
checkNode, eachNode, getNode, iterator
 

Constructor Detail

PositioningComposerImpl

public PositioningComposerImpl(PositioningParser parser,
                               Resolver resolver)
Method Detail

getPosition

public Position getPosition()
Specified by:
getPosition in interface Positionable

getRange

public Position.Range getRange()
Specified by:
getRange in interface Positionable

getScalar

protected Node getScalar(java.lang.String tag,
                         org.jruby.util.ByteList value,
                         char style,
                         Event e)
Overrides:
getScalar in class ComposerImpl

createMapping

protected Node createMapping(java.lang.String tag,
                             java.util.Map value,
                             boolean flowStyle,
                             Event e)
Overrides:
createMapping in class ComposerImpl

finalizeMapping

protected void finalizeMapping(Node node,
                               Event e)
Overrides:
finalizeMapping in class ComposerImpl

createSequence

protected Node createSequence(java.lang.String tag,
                              java.util.List value,
                              boolean flowStyle,
                              Event e)
Overrides:
createSequence in class ComposerImpl

finalizeSequence

protected void finalizeSequence(Node node,
                                Event e)
Overrides:
finalizeSequence in class ComposerImpl

composerException

protected void composerException(java.lang.String when,
                                 java.lang.String what,
                                 java.lang.String note,
                                 Event e)
Overrides:
composerException in class ComposerImpl