Package io.protostuff.compiler
Class ProtoToJavaBeanCompiler
- java.lang.Object
-
- io.protostuff.compiler.STCodeGenerator
-
- io.protostuff.compiler.ProtoToJavaBeanCompiler
-
- All Implemented Interfaces:
ProtoCompiler
- Direct Known Subclasses:
ProtoToJavaBeanPrimitiveCompiler
public class ProtoToJavaBeanCompiler extends STCodeGenerator
Compiles proto files to protobuf java messages (pojos).
-
-
Field Summary
-
Fields inherited from class io.protostuff.compiler.STCodeGenerator
DEFAULT_FORMATTERS, DEFAULT_RENDERERS, ERROR_LISTENER, errorCount, FORMAT_DELIM, GROUP_LOADER, id, STRING_ATTRIBUTE_RENDERER, TEMPLATE_BASE
-
-
Constructor Summary
Constructors Constructor Description ProtoToJavaBeanCompiler()
ProtoToJavaBeanCompiler(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compile(ProtoModule module, Proto proto)
protected void
writeEnums(ProtoModule module, Proto proto, java.lang.String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group)
protected void
writeMessages(ProtoModule module, Proto proto, java.lang.String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group)
-
Methods inherited from class io.protostuff.compiler.STCodeGenerator
chainedFormat, collect, compile, compile, format, getOutputId, getST, getSTG, override, parseProto, postCompile, setAttributeRenderer, setFormatter, setGroupLoader
-
-
-
-
Method Detail
-
compile
public void compile(ProtoModule module, Proto proto) throws java.io.IOException
- Specified by:
compile
in classSTCodeGenerator
- Throws:
java.io.IOException
-
writeMessages
protected void writeMessages(ProtoModule module, Proto proto, java.lang.String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) throws java.io.IOException
- Throws:
java.io.IOException
-
writeEnums
protected void writeEnums(ProtoModule module, Proto proto, java.lang.String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) throws java.io.IOException
- Throws:
java.io.IOException
-
-