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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
compile
(ProtoModule module, Proto proto) protected void
writeEnums
(ProtoModule module, Proto proto, String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) protected void
writeMessages
(ProtoModule module, Proto proto, 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
-
Constructor Details
-
ProtoToJavaBeanCompiler
public ProtoToJavaBeanCompiler() -
ProtoToJavaBeanCompiler
-
-
Method Details
-
compile
- Specified by:
compile
in classSTCodeGenerator
- Throws:
IOException
-
writeMessages
protected void writeMessages(ProtoModule module, Proto proto, String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) throws IOException - Throws:
IOException
-
writeEnums
protected void writeEnums(ProtoModule module, Proto proto, String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) throws IOException - Throws:
IOException
-