public abstract class AbstractProtoParserListener extends ProtoParserBaseListener
| Modifier and Type | Field and Description |
|---|---|
protected ProtoContext |
context |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProtoParserListener(org.antlr.v4.runtime.BufferedTokenStream tokens,
ProtoContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachComments(org.antlr.v4.runtime.ParserRuleContext ctx,
AbstractElement element,
boolean addTrailingComment) |
protected SourceCodeLocation |
getSourceCodeLocation(org.antlr.v4.runtime.ParserRuleContext ctx) |
protected String |
getTextFromLineCommentToken(org.antlr.v4.runtime.Token token) |
protected List<String> |
trim(List<String> comments)
Remove common leading whitespaces from all strings in the list.
|
enterEnumBlock, enterEnumConstant, enterEveryRule, enterExtendBlock, enterExtendBlockEntry, enterExtensions, enterField, enterFieldModifier, enterFieldName, enterFieldNames, enterFieldOptions, enterGroupBlock, enterImportStatement, enterMap, enterMapKey, enterMapValue, enterMessageBlock, enterName, enterOneof, enterOneofField, enterOneofGroup, enterOption, enterOptionEntry, enterOptionName, enterOptionValue, enterPackageName, enterPackageStatement, enterProto, enterRange, enterRanges, enterReserved, enterRpcMethod, enterRpcType, enterServiceBlock, enterSyntax, enterTag, enterTextFormat, enterTextFormatEntry, enterTextFormatOptionName, enterTextFormatOptionValue, enterTypeReference, exitEnumBlock, exitEnumConstant, exitEveryRule, exitExtendBlock, exitExtendBlockEntry, exitExtensions, exitField, exitFieldModifier, exitFieldName, exitFieldNames, exitFieldOptions, exitGroupBlock, exitImportStatement, exitMap, exitMapKey, exitMapValue, exitMessageBlock, exitName, exitOneof, exitOneofField, exitOneofGroup, exitOption, exitOptionEntry, exitOptionName, exitOptionValue, exitPackageName, exitPackageStatement, exitProto, exitRange, exitRanges, exitReserved, exitRpcMethod, exitRpcType, exitServiceBlock, exitSyntax, exitTag, exitTextFormat, exitTextFormatEntry, exitTextFormatOptionName, exitTextFormatOptionValue, exitTypeReference, visitErrorNode, visitTerminalprotected final ProtoContext context
protected AbstractProtoParserListener(org.antlr.v4.runtime.BufferedTokenStream tokens,
ProtoContext context)
protected SourceCodeLocation getSourceCodeLocation(org.antlr.v4.runtime.ParserRuleContext ctx)
protected void attachComments(org.antlr.v4.runtime.ParserRuleContext ctx,
AbstractElement element,
boolean addTrailingComment)
protected List<String> trim(List<String> comments)
protected String getTextFromLineCommentToken(org.antlr.v4.runtime.Token token)
Copyright © 2015–2016. All rights reserved.