C# Class ProtoZBuffer.Core.ProtoGenerator

Inheritance: IAstNodeVisitor
Show file Open project: CAST-projects/ProtoZBuffer

Public Methods

Method Description
Generate ( protozbuffType p, string protoFilename, string nspace ) : void
Visit ( enumElementType node ) : void
Visit ( enumType node ) : void
Visit ( fieldType node ) : void
Visit ( indexType node ) : void
Visit ( messageType node ) : void
Visit ( protozbuffType node ) : void

Private Methods

Method Description
FormatField ( fieldType node, string type ) : string
FormatIndex ( indexType node, string type ) : string
Generate ( IAstNode p, TextWriter streamWriter, string nspace ) : void
GenerateLocalMessageDescriptor ( ) : void
ProtoGenerator ( TextWriter strm, string nspace ) : System.Diagnostics
ProtoTypeString ( fieldType node ) : string

Method Details

Generate() public static method

public static Generate ( protozbuffType p, string protoFilename, string nspace ) : void
p protozbuffType
protoFilename string
nspace string
return void

Visit() public method

public Visit ( enumElementType node ) : void
node enumElementType
return void

Visit() public method

public Visit ( enumType node ) : void
node enumType
return void

Visit() public method

public Visit ( fieldType node ) : void
node fieldType
return void

Visit() public method

public Visit ( indexType node ) : void
node indexType
return void

Visit() public method

public Visit ( messageType node ) : void
node messageType
return void

Visit() public method

public Visit ( protozbuffType node ) : void
node protozbuffType
return void