Search in sources :

Example 1 with PTagOpenContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext in project checkstyle by checkstyle.

the class ParseTreeBuilder method treeUnclosedAndClosedParagraphs.

public static ParseTree treeUnclosedAndClosedParagraphs() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    PTagOpenContext pTagOpenContext0 = new PTagOpenContext(htmlElementContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext0.addChild(open0);
    CommonToken pHtmlTagName0 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagOpenContext0.addChild(pHtmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext0.addChild(close0);
    htmlElementContext0.addChild(pTagOpenContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline0);
    TextContext textContext0 = new TextContext(javadocContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "f");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext0.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char4);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws0);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext0.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "g");
    textContext0.addChild(char9);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext0.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "h");
    textContext0.addChild(char13);
    javadocContext0.addChild(textContext0);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline1);
    HtmlElementContext htmlElementContext1 = new HtmlElementContext(javadocContext0, 0);
    ParagraphContext paragraphContext0 = new ParagraphContext(htmlElementContext1, 0);
    PTagOpenContext pTagOpenContext1 = new PTagOpenContext(paragraphContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext1.addChild(open1);
    CommonToken pHtmlTagName1 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagOpenContext1.addChild(pHtmlTagName1);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext1.addChild(close1);
    paragraphContext0.addChild(pTagOpenContext1);
    CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    paragraphContext0.addChild(newline2);
    TextContext textContext1 = new TextContext(paragraphContext0, 0);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext1.addChild(char14);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char15);
    CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "c");
    textContext1.addChild(char16);
    CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext1.addChild(char17);
    CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext1.addChild(char18);
    CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, "d");
    textContext1.addChild(char19);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws1);
    CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext1.addChild(char20);
    CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char21);
    CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext1.addChild(char22);
    CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char23);
    CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "g");
    textContext1.addChild(char24);
    CommonToken char25 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext1.addChild(char25);
    CommonToken char26 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char26);
    CommonToken char27 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext1.addChild(char27);
    CommonToken char28 = new CommonToken(JavadocTokenTypes.CHAR, "h");
    textContext1.addChild(char28);
    paragraphContext0.addChild(textContext1);
    CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    paragraphContext0.addChild(newline3);
    PTagCloseContext pTagCloseContext0 = new PTagCloseContext(paragraphContext0, 0);
    CommonToken open2 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagCloseContext0.addChild(open2);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    pTagCloseContext0.addChild(slash0);
    CommonToken pHtmlTagName2 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagCloseContext0.addChild(pHtmlTagName2);
    CommonToken close2 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagCloseContext0.addChild(close2);
    paragraphContext0.addChild(pTagCloseContext0);
    htmlElementContext1.addChild(paragraphContext0);
    javadocContext0.addChild(htmlElementContext1);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : PTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext) ParagraphContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ParagraphContext) TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) PTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagCloseContext) CommonToken(org.antlr.v4.runtime.CommonToken)

Example 2 with PTagOpenContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext in project checkstyle by checkstyle.

the class ParseTreeBuilder method treeMixedCaseOfHtmlTags.

public static ParseTree treeMixedCaseOfHtmlTags() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    PTagOpenContext pTagOpenContext0 = new PTagOpenContext(htmlElementContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext0.addChild(open0);
    CommonToken pHtmlTagName0 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "P");
    pTagOpenContext0.addChild(pHtmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext0.addChild(close0);
    htmlElementContext0.addChild(pTagOpenContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline0);
    HtmlElementContext htmlElementContext1 = new HtmlElementContext(javadocContext0, 0);
    SingletonElementContext singletonElementContext0 = new SingletonElementContext(htmlElementContext1, 0);
    BrTagContext brTagContext0 = new BrTagContext(singletonElementContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    brTagContext0.addChild(open1);
    CommonToken brHtmlTagName0 = new CommonToken(JavadocTokenTypes.BR_HTML_TAG_NAME, "br");
    brTagContext0.addChild(brHtmlTagName0);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    brTagContext0.addChild(close1);
    singletonElementContext0.addChild(brTagContext0);
    htmlElementContext1.addChild(singletonElementContext0);
    javadocContext0.addChild(htmlElementContext1);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline1);
    HtmlElementContext htmlElementContext2 = new HtmlElementContext(javadocContext0, 0);
    SingletonElementContext singletonElementContext1 = new SingletonElementContext(htmlElementContext2, 0);
    BrTagContext brTagContext1 = new BrTagContext(singletonElementContext1, 0);
    CommonToken open2 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    brTagContext1.addChild(open2);
    CommonToken brHtmlTagName1 = new CommonToken(JavadocTokenTypes.BR_HTML_TAG_NAME, "br");
    brTagContext1.addChild(brHtmlTagName1);
    CommonToken slashClose0 = new CommonToken(JavadocTokenTypes.SLASH_CLOSE, "/>");
    brTagContext1.addChild(slashClose0);
    singletonElementContext1.addChild(brTagContext1);
    htmlElementContext2.addChild(singletonElementContext1);
    javadocContext0.addChild(htmlElementContext2);
    CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline2);
    HtmlElementContext htmlElementContext3 = new HtmlElementContext(javadocContext0, 0);
    SingletonElementContext singletonElementContext2 = new SingletonElementContext(htmlElementContext3, 0);
    BrTagContext brTagContext2 = new BrTagContext(singletonElementContext2, 0);
    CommonToken open3 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    brTagContext2.addChild(open3);
    CommonToken brHtmlTagName2 = new CommonToken(JavadocTokenTypes.BR_HTML_TAG_NAME, "BR");
    brTagContext2.addChild(brHtmlTagName2);
    CommonToken close2 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    brTagContext2.addChild(close2);
    singletonElementContext2.addChild(brTagContext2);
    htmlElementContext3.addChild(singletonElementContext2);
    javadocContext0.addChild(htmlElementContext3);
    CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline3);
    HtmlElementContext htmlElementContext4 = new HtmlElementContext(javadocContext0, 0);
    SingletonElementContext singletonElementContext3 = new SingletonElementContext(htmlElementContext4, 0);
    BrTagContext brTagContext3 = new BrTagContext(singletonElementContext3, 0);
    CommonToken open4 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    brTagContext3.addChild(open4);
    CommonToken brHtmlTagName3 = new CommonToken(JavadocTokenTypes.BR_HTML_TAG_NAME, "BR");
    brTagContext3.addChild(brHtmlTagName3);
    CommonToken slashClose1 = new CommonToken(JavadocTokenTypes.SLASH_CLOSE, "/>");
    brTagContext3.addChild(slashClose1);
    singletonElementContext3.addChild(brTagContext3);
    htmlElementContext4.addChild(singletonElementContext3);
    javadocContext0.addChild(htmlElementContext4);
    CommonToken newline4 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline4);
    HtmlElementContext htmlElementContext5 = new HtmlElementContext(javadocContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext5, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open5 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open5);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "TABLE");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken close3 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close3);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    CommonToken newline5 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline5);
    TextContext textContext0 = new TextContext(htmlTagContext0, 0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, "\t");
    textContext0.addChild(ws0);
    htmlTagContext0.addChild(textContext0);
    HtmlElementContext htmlElementContext6 = new HtmlElementContext(htmlTagContext0, 0);
    TrContext trContext0 = new TrContext(htmlElementContext6, 0);
    TrTagOpenContext trTagOpenContext0 = new TrTagOpenContext(trContext0, 0);
    CommonToken open6 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    trTagOpenContext0.addChild(open6);
    CommonToken trHtmlTagName0 = new CommonToken(JavadocTokenTypes.TR_HTML_TAG_NAME, "tr");
    trTagOpenContext0.addChild(trHtmlTagName0);
    CommonToken close4 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    trTagOpenContext0.addChild(close4);
    trContext0.addChild(trTagOpenContext0);
    TrTagCloseContext trTagCloseContext0 = new TrTagCloseContext(trContext0, 0);
    CommonToken open7 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    trTagCloseContext0.addChild(open7);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    trTagCloseContext0.addChild(slash0);
    CommonToken trHtmlTagName1 = new CommonToken(JavadocTokenTypes.TR_HTML_TAG_NAME, "TR");
    trTagCloseContext0.addChild(trHtmlTagName1);
    CommonToken close5 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    trTagCloseContext0.addChild(close5);
    trContext0.addChild(trTagCloseContext0);
    htmlElementContext6.addChild(trContext0);
    htmlTagContext0.addChild(htmlElementContext6);
    CommonToken newline6 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline6);
    TextContext textContext1 = new TextContext(htmlTagContext0, 0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, "\t");
    textContext1.addChild(ws1);
    htmlTagContext0.addChild(textContext1);
    HtmlElementContext htmlElementContext7 = new HtmlElementContext(htmlTagContext0, 0);
    TrContext trContext1 = new TrContext(htmlElementContext7, 0);
    TrTagOpenContext trTagOpenContext1 = new TrTagOpenContext(trContext1, 0);
    CommonToken open8 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    trTagOpenContext1.addChild(open8);
    CommonToken trHtmlTagName2 = new CommonToken(JavadocTokenTypes.TR_HTML_TAG_NAME, "TR");
    trTagOpenContext1.addChild(trHtmlTagName2);
    CommonToken close6 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    trTagOpenContext1.addChild(close6);
    trContext1.addChild(trTagOpenContext1);
    TrTagCloseContext trTagCloseContext1 = new TrTagCloseContext(trContext1, 0);
    CommonToken open9 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    trTagCloseContext1.addChild(open9);
    CommonToken slash1 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    trTagCloseContext1.addChild(slash1);
    CommonToken trHtmlTagName3 = new CommonToken(JavadocTokenTypes.TR_HTML_TAG_NAME, "tr");
    trTagCloseContext1.addChild(trHtmlTagName3);
    CommonToken close7 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    trTagCloseContext1.addChild(close7);
    trContext1.addChild(trTagCloseContext1);
    htmlElementContext7.addChild(trContext1);
    htmlTagContext0.addChild(htmlElementContext7);
    CommonToken newline7 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline7);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open10 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open10);
    CommonToken slash2 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash2);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "table");
    htmlElementCloseContext0.addChild(htmlTagName1);
    CommonToken close8 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close8);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext5.addChild(htmlTagContext0);
    javadocContext0.addChild(htmlElementContext5);
    CommonToken newline8 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline8);
    HtmlElementContext htmlElementContext8 = new HtmlElementContext(javadocContext0, 0);
    PTagCloseContext pTagCloseContext0 = new PTagCloseContext(htmlElementContext8, 0);
    CommonToken open11 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagCloseContext0.addChild(open11);
    CommonToken slash3 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    pTagCloseContext0.addChild(slash3);
    CommonToken pHtmlTagName1 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagCloseContext0.addChild(pHtmlTagName1);
    CommonToken close9 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagCloseContext0.addChild(close9);
    htmlElementContext8.addChild(pTagCloseContext0);
    javadocContext0.addChild(htmlElementContext8);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : PTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext) PTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagCloseContext) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) SingletonElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.SingletonElementContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext) BrTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.BrTagContext) TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) TrTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TrTagCloseContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) TrTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TrTagOpenContext) HtmlElementCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext) TrContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TrContext) CommonToken(org.antlr.v4.runtime.CommonToken)

Example 3 with PTagOpenContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext in project checkstyle by checkstyle.

the class ParseTreeBuilder method treeListWithUnclosedItemInUnclosedParagraph.

public static ParseTree treeListWithUnclosedItemInUnclosedParagraph() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    PTagOpenContext pTagOpenContext0 = new PTagOpenContext(htmlElementContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext0.addChild(open0);
    CommonToken pHtmlTagName0 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagOpenContext0.addChild(pHtmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext0.addChild(close0);
    htmlElementContext0.addChild(pTagOpenContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline0);
    HtmlElementContext htmlElementContext1 = new HtmlElementContext(javadocContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext1, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open1);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "ul");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline1);
    TextContext textContext0 = new TextContext(htmlTagContext0, 0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, "\t");
    textContext0.addChild(ws0);
    htmlTagContext0.addChild(textContext0);
    HtmlElementContext htmlElementContext2 = new HtmlElementContext(htmlTagContext0, 0);
    LiTagOpenContext liTagOpenContext0 = new LiTagOpenContext(htmlElementContext2, 0);
    CommonToken open2 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    liTagOpenContext0.addChild(open2);
    CommonToken liHtmlTagName0 = new CommonToken(JavadocTokenTypes.LI_HTML_TAG_NAME, "li");
    liTagOpenContext0.addChild(liHtmlTagName0);
    CommonToken close2 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    liTagOpenContext0.addChild(close2);
    htmlElementContext2.addChild(liTagOpenContext0);
    htmlTagContext0.addChild(htmlElementContext2);
    TextContext textContext1 = new TextContext(htmlTagContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext1.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext1.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext1.addChild(char3);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws1);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "1");
    textContext1.addChild(char4);
    htmlTagContext0.addChild(textContext1);
    CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline2);
    TextContext textContext2 = new TextContext(htmlTagContext0, 0);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, "\t");
    textContext2.addChild(ws2);
    htmlTagContext0.addChild(textContext2);
    HtmlElementContext htmlElementContext3 = new HtmlElementContext(htmlTagContext0, 0);
    LiContext liContext0 = new LiContext(htmlElementContext3, 0);
    LiTagOpenContext liTagOpenContext1 = new LiTagOpenContext(liContext0, 0);
    CommonToken open3 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    liTagOpenContext1.addChild(open3);
    CommonToken liHtmlTagName1 = new CommonToken(JavadocTokenTypes.LI_HTML_TAG_NAME, "li");
    liTagOpenContext1.addChild(liHtmlTagName1);
    CommonToken close3 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    liTagOpenContext1.addChild(close3);
    liContext0.addChild(liTagOpenContext1);
    TextContext textContext3 = new TextContext(liContext0, 0);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext3.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext3.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext3.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext3.addChild(char8);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext3.addChild(ws3);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "2");
    textContext3.addChild(char9);
    liContext0.addChild(textContext3);
    LiTagCloseContext liTagCloseContext0 = new LiTagCloseContext(liContext0, 0);
    CommonToken open4 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    liTagCloseContext0.addChild(open4);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    liTagCloseContext0.addChild(slash0);
    CommonToken liHtmlTagName2 = new CommonToken(JavadocTokenTypes.LI_HTML_TAG_NAME, "li");
    liTagCloseContext0.addChild(liHtmlTagName2);
    CommonToken close4 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    liTagCloseContext0.addChild(close4);
    liContext0.addChild(liTagCloseContext0);
    htmlElementContext3.addChild(liContext0);
    htmlTagContext0.addChild(htmlElementContext3);
    CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlTagContext0.addChild(newline3);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open5 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open5);
    CommonToken slash1 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash1);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "ul");
    htmlElementCloseContext0.addChild(htmlTagName1);
    CommonToken close5 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close5);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext1.addChild(htmlTagContext0);
    javadocContext0.addChild(htmlElementContext1);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : PTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext) TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) LiTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiTagCloseContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) HtmlElementCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext) CommonToken(org.antlr.v4.runtime.CommonToken) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) LiContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext) LiTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiTagOpenContext)

Example 4 with PTagOpenContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext in project checkstyle by checkstyle.

the class ParseTreeBuilder method treeUnclosedParagraphFollowedByJavadocTag.

public static ParseTree treeUnclosedParagraphFollowedByJavadocTag() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    PTagOpenContext pTagOpenContext0 = new PTagOpenContext(htmlElementContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext0.addChild(open0);
    CommonToken pHtmlTagName0 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagOpenContext0.addChild(pHtmlTagName0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    pTagOpenContext0.addChild(ws0);
    AttributeContext attributeContext0 = new AttributeContext(pTagOpenContext0, 0);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "style");
    attributeContext0.addChild(htmlTagName0);
    CommonToken equals0 = new CommonToken(JavadocTokenTypes.EQUALS, "=");
    attributeContext0.addChild(equals0);
    CommonToken attrValue0 = new CommonToken(JavadocTokenTypes.ATTR_VALUE, "\"color: red;\"");
    attributeContext0.addChild(attrValue0);
    pTagOpenContext0.addChild(attributeContext0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext0.addChild(close0);
    htmlElementContext0.addChild(pTagOpenContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline0);
    TextContext textContext0 = new TextContext(javadocContext0, 0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, "\t");
    textContext0.addChild(ws1);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "x");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char3);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws2);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "x");
    textContext0.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char7);
    javadocContext0.addChild(textContext0);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline1);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken authorLiteral0 = new CommonToken(JavadocTokenTypes.AUTHOR_LITERAL, "@author");
    javadocTagContext0.addChild(authorLiteral0);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws3);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext0, 0);
    TextContext textContext1 = new TextContext(descriptionContext0, 0);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "B");
    textContext1.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char9);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext1.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext1.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext1.addChild(char14);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext1.addChild(char15);
    descriptionContext0.addChild(textContext1);
    javadocTagContext0.addChild(descriptionContext0);
    javadocContext0.addChild(javadocTagContext0);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : PTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext) TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) AttributeContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.AttributeContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) JavadocTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext) CommonToken(org.antlr.v4.runtime.CommonToken) DescriptionContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DescriptionContext)

Example 5 with PTagOpenContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext in project checkstyle by checkstyle.

the class ParseTreeBuilder method treeHtmlTagsInParagraph.

public static ParseTree treeHtmlTagsInParagraph() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline0);
    CommonToken leadingAsterisk0 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    javadocContext0.addChild(leadingAsterisk0);
    TextContext textContext0 = new TextContext(javadocContext0, 0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws0);
    javadocContext0.addChild(textContext0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    ParagraphContext paragraphContext0 = new ParagraphContext(htmlElementContext0, 0);
    PTagOpenContext pTagOpenContext0 = new PTagOpenContext(paragraphContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagOpenContext0.addChild(open0);
    CommonToken pHtmlTagName0 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagOpenContext0.addChild(pHtmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagOpenContext0.addChild(close0);
    paragraphContext0.addChild(pTagOpenContext0);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    paragraphContext0.addChild(newline1);
    CommonToken leadingAsterisk1 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    paragraphContext0.addChild(leadingAsterisk1);
    TextContext textContext1 = new TextContext(paragraphContext0, 0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws1);
    paragraphContext0.addChild(textContext1);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(paragraphContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open1);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "b");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    TextContext textContext2 = new TextContext(htmlTagContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "D");
    textContext2.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext2.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext2.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "c");
    textContext2.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext2.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext2.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext2.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext2.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext2.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext2.addChild(char9);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext2.addChild(char10);
    htmlTagContext0.addChild(textContext2);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open2 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open2);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash0);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "b");
    htmlElementCloseContext0.addChild(htmlTagName1);
    CommonToken close2 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close2);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    paragraphContext0.addChild(htmlTagContext0);
    TextContext textContext3 = new TextContext(paragraphContext0, 0);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext3.addChild(ws2);
    paragraphContext0.addChild(textContext3);
    HtmlTagContext htmlTagContext1 = new HtmlTagContext(paragraphContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext1 = new HtmlElementOpenContext(htmlTagContext1, 0);
    CommonToken open3 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext1.addChild(open3);
    CommonToken htmlTagName2 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "i");
    htmlElementOpenContext1.addChild(htmlTagName2);
    CommonToken close3 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext1.addChild(close3);
    htmlTagContext1.addChild(htmlElementOpenContext1);
    TextContext textContext4 = new TextContext(htmlTagContext1, 0);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext4.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "f");
    textContext4.addChild(char12);
    htmlTagContext1.addChild(textContext4);
    HtmlElementCloseContext htmlElementCloseContext1 = new HtmlElementCloseContext(htmlTagContext1, 0);
    CommonToken open4 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext1.addChild(open4);
    CommonToken slash1 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext1.addChild(slash1);
    CommonToken htmlTagName3 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "i");
    htmlElementCloseContext1.addChild(htmlTagName3);
    CommonToken close4 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext1.addChild(close4);
    htmlTagContext1.addChild(htmlElementCloseContext1);
    paragraphContext0.addChild(htmlTagContext1);
    TextContext textContext5 = new TextContext(paragraphContext0, 0);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext5.addChild(ws3);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext5.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext5.addChild(char14);
    CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext5.addChild(ws4);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "c");
    textContext5.addChild(char15);
    CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext5.addChild(char16);
    CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext5.addChild(char17);
    CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext5.addChild(char18);
    CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext5.addChild(char19);
    CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, ".");
    textContext5.addChild(char20);
    paragraphContext0.addChild(textContext5);
    CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    paragraphContext0.addChild(newline2);
    CommonToken leadingAsterisk2 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    paragraphContext0.addChild(leadingAsterisk2);
    TextContext textContext6 = new TextContext(paragraphContext0, 0);
    CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext6.addChild(ws5);
    paragraphContext0.addChild(textContext6);
    PTagCloseContext pTagCloseContext0 = new PTagCloseContext(paragraphContext0, 0);
    CommonToken open5 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    pTagCloseContext0.addChild(open5);
    CommonToken slash2 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    pTagCloseContext0.addChild(slash2);
    CommonToken pHtmlTagName1 = new CommonToken(JavadocTokenTypes.P_HTML_TAG_NAME, "p");
    pTagCloseContext0.addChild(pHtmlTagName1);
    CommonToken close5 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    pTagCloseContext0.addChild(close5);
    paragraphContext0.addChild(pTagCloseContext0);
    htmlElementContext0.addChild(paragraphContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline3);
    CommonToken leadingAsterisk3 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    javadocContext0.addChild(leadingAsterisk3);
    TextContext textContext7 = new TextContext(javadocContext0, 0);
    CommonToken ws6 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext7.addChild(ws6);
    CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "A");
    textContext7.addChild(char21);
    CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext7.addChild(char22);
    CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext7.addChild(char23);
    CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext7.addChild(char24);
    CommonToken char25 = new CommonToken(JavadocTokenTypes.CHAR, "h");
    textContext7.addChild(char25);
    CommonToken char26 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext7.addChild(char26);
    CommonToken char27 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext7.addChild(char27);
    CommonToken ws7 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext7.addChild(ws7);
    CommonToken char28 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext7.addChild(char28);
    CommonToken char29 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext7.addChild(char29);
    CommonToken char30 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext7.addChild(char30);
    CommonToken char31 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext7.addChild(char31);
    CommonToken ws8 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext7.addChild(ws8);
    CommonToken char32 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext7.addChild(char32);
    CommonToken char33 = new CommonToken(JavadocTokenTypes.CHAR, "f");
    textContext7.addChild(char33);
    CommonToken ws9 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext7.addChild(ws9);
    CommonToken char34 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext7.addChild(char34);
    CommonToken char35 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext7.addChild(char35);
    CommonToken char36 = new CommonToken(JavadocTokenTypes.CHAR, "x");
    textContext7.addChild(char36);
    CommonToken char37 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext7.addChild(char37);
    javadocContext0.addChild(textContext7);
    CommonToken newline4 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocContext0.addChild(newline4);
    TextContext textContext8 = new TextContext(javadocContext0, 0);
    CommonToken ws10 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext8.addChild(ws10);
    javadocContext0.addChild(textContext8);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : ParagraphContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ParagraphContext) PTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext) TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) HtmlElementCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext) PTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagCloseContext) CommonToken(org.antlr.v4.runtime.CommonToken) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)

Aggregations

HtmlElementContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext)5 JavadocContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext)5 PTagOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext)5 TextContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext)5 CommonToken (org.antlr.v4.runtime.CommonToken)5 HtmlElementCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext)3 HtmlElementOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)3 HtmlTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext)3 PTagCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagCloseContext)3 ParagraphContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ParagraphContext)2 AttributeContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.AttributeContext)1 BrTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.BrTagContext)1 DescriptionContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DescriptionContext)1 JavadocTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext)1 LiContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiContext)1 LiTagCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiTagCloseContext)1 LiTagOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.LiTagOpenContext)1 SingletonElementContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.SingletonElementContext)1 TrContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TrContext)1 TrTagCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TrTagCloseContext)1