public class ProtoToProtoCompiler extends STCodeGenerator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LINE_SEPARATOR |
ERROR_LISTENER, errorCount, FORMAT_DELIM, GROUP_LOADER, id, STRING_ATTRIBUTE_RENDERER, TEMPLATE_BASE| Constructor and Description |
|---|
ProtoToProtoCompiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(ProtoModule module,
Proto proto) |
static java.lang.String |
extendBy(org.antlr.stringtemplate.StringTemplateGroup group,
Message extend,
Message by) |
static java.lang.String |
generateIndentation(java.lang.String indentation,
int length) |
static java.lang.String |
generateTimestamp(Message extend,
Message by) |
static java.lang.String |
injectAfterAnnotation(Message extend,
Message by,
java.lang.String extendProto,
java.lang.String byContent) |
static java.lang.String |
injectAfterOption(Message extend,
Message by,
java.lang.String extendProto,
java.lang.String byContent) |
static java.lang.String |
insertIndentation(java.lang.String content,
java.lang.String indent) |
chainedFormat, collect, compile, compile, format, getOutputId, getST, getSTG, override, parseProto, postCompile, setAttributeRenderer, setFormatter, setGroupLoaderpublic void compile(ProtoModule module, Proto proto) throws java.io.IOException
compile in class STCodeGeneratorjava.io.IOExceptionpublic static java.lang.String extendBy(org.antlr.stringtemplate.StringTemplateGroup group,
Message extend,
Message by)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String injectAfterAnnotation(Message extend, Message by, java.lang.String extendProto, java.lang.String byContent)
public static java.lang.String injectAfterOption(Message extend, Message by, java.lang.String extendProto, java.lang.String byContent)
public static java.lang.String insertIndentation(java.lang.String content,
java.lang.String indent)
public static java.lang.String generateIndentation(java.lang.String indentation,
int length)
Copyright © 2009-2015. All Rights Reserved.