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 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 TypeMethodDescriptionvoidcompile(ProtoModule module, Proto proto) protected voidwriteEnums(ProtoModule module, Proto proto, String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) protected voidwriteMessages(ProtoModule module, Proto proto, String javaPackageName, org.antlr.stringtemplate.StringTemplateGroup group) Methods inherited from class 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:
compilein 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
-