Search in sources :

Example 1 with HtmlElementContext

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

the class ParseTreeBuilder method treeComments.

public static ParseTree treeComments() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    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);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "U");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char2);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws1);
    javadocContext0.addChild(textContext0);
    HtmlCommentContext htmlCommentContext0 = new HtmlCommentContext(javadocContext0, 0);
    CommonToken htmlCommentStart0 = new CommonToken(JavadocTokenTypes.HTML_COMMENT_START, "<!--");
    htmlCommentContext0.addChild(htmlCommentStart0);
    TextContext textContext1 = new TextContext(htmlCommentContext0, 0);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext1.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext1.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext1.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "d");
    textContext1.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext1.addChild(char9);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "d");
    textContext1.addChild(char10);
    htmlCommentContext0.addChild(textContext1);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    htmlCommentContext0.addChild(newline0);
    CommonToken leadingAsterisk1 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    htmlCommentContext0.addChild(leadingAsterisk1);
    TextContext textContext2 = new TextContext(htmlCommentContext0, 0);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext2.addChild(ws3);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "j");
    textContext2.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext2.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "v");
    textContext2.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext2.addChild(char14);
    CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext2.addChild(ws4);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext2.addChild(char15);
    CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext2.addChild(char16);
    CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext2.addChild(char17);
    CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext2.addChild(char18);
    CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext2.addChild(ws5);
    htmlCommentContext0.addChild(textContext2);
    CommonToken htmlCommentEnd0 = new CommonToken(JavadocTokenTypes.HTML_COMMENT_END, "-->");
    htmlCommentContext0.addChild(htmlCommentEnd0);
    javadocContext0.addChild(htmlCommentContext0);
    TextContext textContext3 = new TextContext(javadocContext0, 0);
    CommonToken ws6 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext3.addChild(ws6);
    javadocContext0.addChild(textContext3);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open0);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "b");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close0);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    TextContext textContext4 = new TextContext(htmlTagContext0, 0);
    CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, "S");
    textContext4.addChild(char19);
    CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext4.addChild(char20);
    CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext4.addChild(char21);
    CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext4.addChild(char22);
    CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext4.addChild(char23);
    CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "g");
    textContext4.addChild(char24);
    htmlTagContext0.addChild(textContext4);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open1);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash0);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "b");
    htmlElementCloseContext0.addChild(htmlTagName1);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext0.addChild(htmlTagContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : 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) CommonToken(org.antlr.v4.runtime.CommonToken) HtmlCommentContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlCommentContext) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)

Example 2 with HtmlElementContext

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

the class ParseTreeBuilder method treeClosedOtherTag.

public static ParseTree treeClosedOtherTag() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    TextContext textContext0 = new TextContext(javadocContext0, 0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws0);
    javadocContext0.addChild(textContext0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    DdTagOpenContext ddTagOpenContext0 = new DdTagOpenContext(htmlElementContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    ddTagOpenContext0.addChild(open0);
    CommonToken ddHtmlTagName0 = new CommonToken(JavadocTokenTypes.DD_HTML_TAG_NAME, "dd");
    ddTagOpenContext0.addChild(ddHtmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    ddTagOpenContext0.addChild(close0);
    htmlElementContext0.addChild(ddTagOpenContext0);
    javadocContext0.addChild(htmlElementContext0);
    HtmlElementContext htmlElementContext1 = new HtmlElementContext(javadocContext0, 0);
    DtTagCloseContext dtTagCloseContext0 = new DtTagCloseContext(htmlElementContext1, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    dtTagCloseContext0.addChild(open1);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    dtTagCloseContext0.addChild(slash0);
    CommonToken dtHtmlTagName0 = new CommonToken(JavadocTokenTypes.DT_HTML_TAG_NAME, "dt");
    dtTagCloseContext0.addChild(dtHtmlTagName0);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    dtTagCloseContext0.addChild(close1);
    htmlElementContext1.addChild(dtTagCloseContext0);
    javadocContext0.addChild(htmlElementContext1);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) HtmlElementContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext) DdTagOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DdTagOpenContext) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) CommonToken(org.antlr.v4.runtime.CommonToken) DtTagCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DtTagCloseContext)

Example 3 with HtmlElementContext

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

the class ParseTreeBuilder method treeAuthorWithMailto.

public static ParseTree treeAuthorWithMailto() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken authorLiteral0 = new CommonToken(JavadocTokenTypes.AUTHOR_LITERAL, "@author");
    javadocTagContext0.addChild(authorLiteral0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws0);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext0, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(descriptionContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open0);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "a");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    htmlElementOpenContext0.addChild(ws1);
    AttributeContext attributeContext0 = new AttributeContext(htmlElementOpenContext0, 0);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "href");
    attributeContext0.addChild(htmlTagName1);
    CommonToken equals0 = new CommonToken(JavadocTokenTypes.EQUALS, "=");
    attributeContext0.addChild(equals0);
    CommonToken attrValue0 = new CommonToken(JavadocTokenTypes.ATTR_VALUE, "\"mailto:barataliba@gmail.com\"");
    attributeContext0.addChild(attrValue0);
    htmlElementOpenContext0.addChild(attributeContext0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close0);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    TextContext textContext0 = new TextContext(htmlTagContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "B");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext0.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext0.addChild(char7);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws2);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "I");
    textContext0.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "z");
    textContext0.addChild(char9);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext0.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext0.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext0.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext0.addChild(char14);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "v");
    textContext0.addChild(char15);
    htmlTagContext0.addChild(textContext0);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open1);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash0);
    CommonToken htmlTagName2 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "a");
    htmlElementCloseContext0.addChild(htmlTagName2);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext0.addChild(htmlTagContext0);
    descriptionContext0.addChild(htmlElementContext0);
    javadocTagContext0.addChild(descriptionContext0);
    javadocContext0.addChild(javadocTagContext0);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : 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) HtmlElementCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext) JavadocTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext) CommonToken(org.antlr.v4.runtime.CommonToken) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) DescriptionContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DescriptionContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)

Example 4 with HtmlElementContext

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

the class ParseTreeBuilder method treeOneSimpleHtmlTag.

public static ParseTree treeOneSimpleHtmlTag() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open0);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "g");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close0);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    TextContext textContext0 = new TextContext(htmlTagContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "b");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "b");
    textContext0.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext0.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char5);
    htmlTagContext0.addChild(textContext0);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open1);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash0);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "g");
    htmlElementCloseContext0.addChild(htmlTagName1);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext0.addChild(htmlTagContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : 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) CommonToken(org.antlr.v4.runtime.CommonToken) HtmlTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext) HtmlElementOpenContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)

Example 5 with HtmlElementContext

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

the class ParseTreeBuilder method treeNegativeNumberInAttribute.

public static ParseTree treeNegativeNumberInAttribute() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    HtmlElementContext htmlElementContext0 = new HtmlElementContext(javadocContext0, 0);
    HtmlTagContext htmlTagContext0 = new HtmlTagContext(htmlElementContext0, 0);
    HtmlElementOpenContext htmlElementOpenContext0 = new HtmlElementOpenContext(htmlTagContext0, 0);
    CommonToken open0 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementOpenContext0.addChild(open0);
    CommonToken htmlTagName0 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "font");
    htmlElementOpenContext0.addChild(htmlTagName0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    htmlElementOpenContext0.addChild(ws0);
    AttributeContext attributeContext0 = new AttributeContext(htmlElementOpenContext0, 0);
    CommonToken htmlTagName1 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "size");
    attributeContext0.addChild(htmlTagName1);
    CommonToken equals0 = new CommonToken(JavadocTokenTypes.EQUALS, "=");
    attributeContext0.addChild(equals0);
    CommonToken attrValue0 = new CommonToken(JavadocTokenTypes.ATTR_VALUE, "-2");
    attributeContext0.addChild(attrValue0);
    htmlElementOpenContext0.addChild(attributeContext0);
    CommonToken close0 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementOpenContext0.addChild(close0);
    htmlTagContext0.addChild(htmlElementOpenContext0);
    TextContext textContext0 = new TextContext(htmlTagContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "T");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "M");
    textContext0.addChild(char1);
    htmlTagContext0.addChild(textContext0);
    HtmlElementCloseContext htmlElementCloseContext0 = new HtmlElementCloseContext(htmlTagContext0, 0);
    CommonToken open1 = new CommonToken(JavadocTokenTypes.OPEN, "<");
    htmlElementCloseContext0.addChild(open1);
    CommonToken slash0 = new CommonToken(JavadocTokenTypes.SLASH, "/");
    htmlElementCloseContext0.addChild(slash0);
    CommonToken htmlTagName2 = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "font");
    htmlElementCloseContext0.addChild(htmlTagName2);
    CommonToken close1 = new CommonToken(JavadocTokenTypes.CLOSE, ">");
    htmlElementCloseContext0.addChild(close1);
    htmlTagContext0.addChild(htmlElementCloseContext0);
    htmlElementContext0.addChild(htmlTagContext0);
    javadocContext0.addChild(htmlElementContext0);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : 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) HtmlElementCloseContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext) 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)12 JavadocContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext)12 TextContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext)12 CommonToken (org.antlr.v4.runtime.CommonToken)12 HtmlElementCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext)9 HtmlElementOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)9 HtmlTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext)9 AttributeContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.AttributeContext)5 PTagOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext)5 DescriptionContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DescriptionContext)3 JavadocTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext)3 PTagCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagCloseContext)3 ParagraphContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ParagraphContext)2 BrTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.BrTagContext)1 DdTagOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DdTagOpenContext)1 DtTagCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DtTagCloseContext)1 HtmlCommentContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlCommentContext)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