Class JavadocCommentsLexer

java.lang.Object
org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
org.antlr.v4.runtime.Lexer
com.puppycrawl.tools.checkstyle.grammar.javadoc.JavadocCommentsLexer
All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource

public class JavadocCommentsLexer extends org.antlr.v4.runtime.Lexer
  • Field Details

  • Constructor Details

    • JavadocCommentsLexer

      public JavadocCommentsLexer(org.antlr.v4.runtime.CharStream input, boolean crAwareConstructor)
      We need to create a different constructor in order to use our own implementation of the LexerATNSimulator. This is the reason for the unused 'crAwareConstructor' argument.
      Parameters:
      input - the character stream to tokenize
      crAwareConstructor - dummy parameter
    • JavadocCommentsLexer

      public JavadocCommentsLexer(org.antlr.v4.runtime.CharStream input)
  • Method Details

    • makeRuleNames

      private static String[] makeRuleNames()
    • makeLiteralNames

      private static String[] makeLiteralNames()
    • makeSymbolicNames

      private static String[] makeSymbolicNames()
    • getTokenNames

      @Deprecated public String[] getTokenNames()
      Deprecated.
      Overrides:
      getTokenNames in class org.antlr.v4.runtime.Lexer
    • getVocabulary

      public org.antlr.v4.runtime.Vocabulary getVocabulary()
      Overrides:
      getVocabulary in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • isAfterNewline

      public boolean isAfterNewline()
    • setAfterNewline

      public void setAfterNewline()
    • getPreviousToken

      public org.antlr.v4.runtime.Token getPreviousToken()
    • isNormalText

      public boolean isNormalText()
    • isLeadingAsterisk

      private boolean isLeadingAsterisk()
    • isJavadocBlockTag

      public boolean isJavadocBlockTag()
    • emit

      public void emit(org.antlr.v4.runtime.Token token)
      Overrides:
      emit in class org.antlr.v4.runtime.Lexer
    • getUnclosedTagNameTokens

      public Set<SimpleToken> getUnclosedTagNameTokens()
    • getGrammarFileName

      public String getGrammarFileName()
      Specified by:
      getGrammarFileName in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • getRuleNames

      public String[] getRuleNames()
      Specified by:
      getRuleNames in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • getSerializedATN

      public String getSerializedATN()
      Overrides:
      getSerializedATN in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • getChannelNames

      public String[] getChannelNames()
      Overrides:
      getChannelNames in class org.antlr.v4.runtime.Lexer
    • getModeNames

      public String[] getModeNames()
      Overrides:
      getModeNames in class org.antlr.v4.runtime.Lexer
    • getATN

      public org.antlr.v4.runtime.atn.ATN getATN()
      Specified by:
      getATN in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • action

      public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)
      Overrides:
      action in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • NEWLINE_action

      private void NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • TEXT_action

      private void TEXT_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • JAVADOC_INLINE_TAG_START_action

      private void JAVADOC_INLINE_TAG_START_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • SEE_action

      private void SEE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • FieldName_NEWLINE_action

      private void FieldName_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • DottedIdentifier_NEWLINE_action

      private void DottedIdentifier_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • ExceptionName_NEWLINE_action

      private void ExceptionName_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Param_NEWLINE_action

      private void Param_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Code_NEWLINE_action

      private void Code_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Code_LBRACE_action

      private void Code_LBRACE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Code_RBRACE_action

      private void Code_RBRACE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • JAVADOC_INLINE_TAG_END_action

      private void JAVADOC_INLINE_TAG_END_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • SnippetAttribute_NEWLINE_action

      private void SnippetAttribute_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • SnippetAttribute_JAVADOC_INLINE_TAG_END_action

      private void SnippetAttribute_JAVADOC_INLINE_TAG_END_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Snippet_NEWLINE_action

      private void Snippet_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • IDENTIFIER_action

      private void IDENTIFIER_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • GT_action

      private void GT_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • STRING_LITERAL_action

      private void STRING_LITERAL_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • See_TAG_OPEN_action

      private void See_TAG_OPEN_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • LinkDescription_JAVADOC_INLINE_TAG_START_action

      private void LinkDescription_JAVADOC_INLINE_TAG_START_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • LinkDescription_NEWLINE_action

      private void LinkDescription_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • ParameterList_NEWLINE_action

      private void ParameterList_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • RPAREN_action

      private void RPAREN_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Value_NEWLINE_action

      private void Value_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • InlineDescription_JAVADOC_INLINE_TAG_START_action

      private void InlineDescription_JAVADOC_INLINE_TAG_START_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • InlineDescription_NEWLINE_action

      private void InlineDescription_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • IndexTerm_NEWLINE_action

      private void IndexTerm_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • TAG_CLOSE_action

      private void TAG_CLOSE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • TAG_SLASH_CLOSE_action

      private void TAG_SLASH_CLOSE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • TAG_NAME_action

      private void TAG_NAME_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • Tag_NEWLINE_action

      private void Tag_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • AttrValue_NEWLINE_action

      private void AttrValue_NEWLINE_action(org.antlr.v4.runtime.RuleContext _localctx, int actionIndex)
    • sempred

      public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
      Overrides:
      sempred in class org.antlr.v4.runtime.Recognizer<Integer, org.antlr.v4.runtime.atn.LexerATNSimulator>
    • LEADING_ASTERISK_sempred

      private boolean LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • AT_SIGN_sempred

      private boolean AT_SIGN_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • TEXT_CHAR_sempred

      private boolean TEXT_CHAR_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • FieldName_LEADING_ASTERISK_sempred

      private boolean FieldName_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • DottedIdentifier_LEADING_ASTERISK_sempred

      private boolean DottedIdentifier_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • ExceptionName_LEADING_ASTERISK_sempred

      private boolean ExceptionName_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Param_LEADING_ASTERISK_sempred

      private boolean Param_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Code_LEADING_ASTERISK_sempred

      private boolean Code_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Code_RBRACE_sempred

      private boolean Code_RBRACE_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • JAVADOC_INLINE_TAG_END_sempred

      private boolean JAVADOC_INLINE_TAG_END_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Code_TEXT_CHAR_sempred

      private boolean Code_TEXT_CHAR_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • SnippetAttribute_LEADING_ASTERISK_sempred

      private boolean SnippetAttribute_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Snippet_LEADING_ASTERISK_sempred

      private boolean Snippet_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • LT_sempred

      private boolean LT_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • LinkDescription_LEADING_ASTERISK_sempred

      private boolean LinkDescription_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • LinkDescription_TEXT_CHAR_sempred

      private boolean LinkDescription_TEXT_CHAR_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • ParameterList_LEADING_ASTERISK_sempred

      private boolean ParameterList_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Value_LEADING_ASTERISK_sempred

      private boolean Value_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • InlineDescription_TEXT_CHAR_sempred

      private boolean InlineDescription_TEXT_CHAR_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • InlineDescription_LEADING_ASTERISK_sempred

      private boolean InlineDescription_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • IndexTerm_LEADING_ASTERISK_sempred

      private boolean IndexTerm_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • TAG_NAME_sempred

      private boolean TAG_NAME_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • TAG_ATTR_NAME_sempred

      private boolean TAG_ATTR_NAME_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • Tag_LEADING_ASTERISK_sempred

      private boolean Tag_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • AttrValue_LEADING_ASTERISK_sempred

      private boolean AttrValue_LEADING_ASTERISK_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)
    • SLASH_IN_ATTR_sempred

      private boolean SLASH_IN_ATTR_sempred(org.antlr.v4.runtime.RuleContext _localctx, int predIndex)