C# Class IronRuby.StandardLibrary.Yaml.Emitter

Inheritance: IEmitter
Exibir arquivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
Emit ( YamlEvent @event ) : void
Emitter ( TextWriter writer, YamlOptions opts ) : System

Private Methods

Method Description
AnalyzeScalar ( string scalar ) : ScalarProperties
CheckSimpleKey ( ) : bool
ChooseScalarStyle ( int flowLevel, bool simpleKey ) : ScalarQuotingStyle
DetermineChomp ( string text ) : string

Chomping controls how final line breaks and trailing empty lines are interpreted. 1) Clip ("") The final line break is preserved in the scalar’s content. Any trailing empty lines are excluded from the scalar’s content. 2) Strip ("-") The final line break and any trailing empty lines are excluded from the scalar’s content. 3) Keep ("+") The final line break and any trailing empty lines are considered to be part of the scalar’s content. These additional lines are not subject to folding.

ESCAPE_REPLACEMENTS ( char c ) : string
EmitAlias ( ) : void
EmitBlockMapping ( ) : void
EmitBlockMappingKey ( ) : void
EmitBlockMappingSimpleValue ( ) : void
EmitBlockMappingValue ( ) : void
EmitBlockSequence ( ) : void
EmitBlockSequenceItem ( ) : void
EmitDocumentEnd ( ) : void
EmitDocumentRoot ( ) : void
EmitDocumentStart ( bool first ) : void
EmitFlowMapping ( ) : void
EmitFlowMappingKey ( bool first ) : void
EmitFlowMappingSimpleValue ( ) : void
EmitFlowMappingValue ( ) : void
EmitFlowSequence ( ) : void
EmitFlowSequenceItem ( bool first ) : void
EmitNode ( bool root, bool sequence, bool mapping, bool simpleKey ) : void
EmitNothing ( ) : void
EmitScalar ( bool simpleKey ) : void
EmitStreamStart ( ) : void
PrepareTag ( string tag ) : string
ProcessAnchor ( string indicator ) : void
ProcessScalar ( bool simpleKey ) : void
ProcessTag ( bool simpleKey ) : void
WriteDoubleQuoted ( string text, bool split ) : void
WriteFolded ( string text ) : void
WriteIndent ( ) : void
WriteIndicator ( string indicator, bool needWhitespace, bool whitespace, bool indentation ) : void
WriteLineBreak ( ) : void
WriteLiteral ( string text, bool indent ) : void
WritePlain ( string text, bool split ) : void
WriteSingleQuoted ( string text, bool split ) : void
WriteStreamEnd ( ) : void
WriteStreamStart ( ) : void
WriteTagDirective ( string handle, string prefix ) : void
WriteVersionDirective ( string version_text ) : void
checkEmptyDocument ( ) : bool
checkEmptyMapping ( ) : bool
checkEmptySequence ( ) : bool
increaseIndent ( bool flow, bool indentless ) : void
needEvents ( int count ) : bool
needMoreEvents ( ) : bool
prepareAnchor ( string anchor ) : string
prepareTagHandle ( string handle ) : string
prepareTagPrefix ( string prefix ) : string
prepareVersion ( System.Version version ) : string

Method Details

Emit() public method

public Emit ( YamlEvent @event ) : void
@event YamlEvent
return void

Emitter() public method

public Emitter ( TextWriter writer, YamlOptions opts ) : System
writer System.IO.TextWriter
opts YamlOptions
return System