Search in sources :

Example 1 with JavadocTagContext

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

the class ParseTreeBuilder method treeCustomTagWithDot.

public static ParseTree treeCustomTagWithDot() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken customName0 = new CommonToken(JavadocTokenTypes.CUSTOM_NAME, "@ejb:bean");
    javadocTagContext0.addChild(customName0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocTagContext0.addChild(newline0);
    javadocContext0.addChild(javadocTagContext0);
    JavadocTagContext javadocTagContext1 = new JavadocTagContext(javadocContext0, 0);
    CommonToken customName1 = new CommonToken(JavadocTokenTypes.CUSTOM_NAME, "@hibernate.property");
    javadocTagContext1.addChild(customName1);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext1.addChild(ws0);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext1, 0);
    TextContext textContext0 = new TextContext(descriptionContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext0.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext0.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext0.addChild(char9);
    descriptionContext0.addChild(textContext0);
    CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    descriptionContext0.addChild(newline1);
    javadocTagContext1.addChild(descriptionContext0);
    javadocContext0.addChild(javadocTagContext1);
    JavadocTagContext javadocTagContext2 = new JavadocTagContext(javadocContext0, 0);
    CommonToken customName2 = new CommonToken(JavadocTokenTypes.CUSTOM_NAME, "@weblogic.cache-ref");
    javadocTagContext2.addChild(customName2);
    CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    javadocTagContext2.addChild(newline2);
    javadocContext0.addChild(javadocTagContext2);
    JavadocTagContext javadocTagContext3 = new JavadocTagContext(javadocContext0, 0);
    CommonToken customName3 = new CommonToken(JavadocTokenTypes.CUSTOM_NAME, "@my_tag");
    javadocTagContext3.addChild(customName3);
    javadocContext0.addChild(javadocTagContext3);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) 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 2 with JavadocTagContext

use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext 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 3 with JavadocTagContext

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

the class ParseTreeBuilder method treeParamWithGeneric.

public static ParseTree treeParamWithGeneric() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken paramLiteral0 = new CommonToken(JavadocTokenTypes.PARAM_LITERAL, "@param");
    javadocTagContext0.addChild(paramLiteral0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws0);
    CommonToken parameterName0 = new CommonToken(JavadocTokenTypes.PARAMETER_NAME, "<E>");
    javadocTagContext0.addChild(parameterName0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws1);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext0, 0);
    TextContext textContext0 = new TextContext(descriptionContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "m");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext0.addChild(char1);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws2);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "f");
    textContext0.addChild(char2);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext0.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "v");
    textContext0.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "o");
    textContext0.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext0.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext0.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char9);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext0.addChild(ws3);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext0.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "y");
    textContext0.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "p");
    textContext0.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext0.addChild(char13);
    descriptionContext0.addChild(textContext0);
    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) 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 4 with JavadocTagContext

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

the class ParseTreeBuilder method treeJavadocTagDescriptionWithInlineTags.

public static ParseTree treeJavadocTagDescriptionWithInlineTags() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken deprecatedLiteral0 = new CommonToken(JavadocTokenTypes.DEPRECATED_LITERAL, "@deprecated");
    javadocTagContext0.addChild(deprecatedLiteral0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws0);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext0, 0);
    TextContext textContext0 = new TextContext(descriptionContext0, 0);
    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);
    descriptionContext0.addChild(textContext0);
    JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(descriptionContext0, 0);
    CommonToken javadocInlineTagStart0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
    javadocInlineTagContext0.addChild(javadocInlineTagStart0);
    CommonToken linkLiteral0 = new CommonToken(JavadocTokenTypes.LINK_LITERAL, "@link");
    javadocInlineTagContext0.addChild(linkLiteral0);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocInlineTagContext0.addChild(ws2);
    ReferenceContext referenceContext0 = new ReferenceContext(javadocInlineTagContext0, 0);
    CommonToken package0 = new CommonToken(JavadocTokenTypes.PACKAGE, "java.lang");
    referenceContext0.addChild(package0);
    CommonToken dot0 = new CommonToken(JavadocTokenTypes.DOT, ".");
    referenceContext0.addChild(dot0);
    CommonToken class0 = new CommonToken(JavadocTokenTypes.CLASS, "Integer");
    referenceContext0.addChild(class0);
    javadocInlineTagContext0.addChild(referenceContext0);
    DescriptionContext descriptionContext1 = new DescriptionContext(javadocInlineTagContext0, 0);
    TextContext textContext1 = new TextContext(descriptionContext1, 0);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws3);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "I");
    textContext1.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext1.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext1.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "g");
    textContext1.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "r");
    textContext1.addChild(char9);
    descriptionContext1.addChild(textContext1);
    JavadocInlineTagContext javadocInlineTagContext1 = new JavadocInlineTagContext(descriptionContext1, 0);
    CommonToken javadocInlineTagStart1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
    javadocInlineTagContext1.addChild(javadocInlineTagStart1);
    CommonToken codeLiteral0 = new CommonToken(JavadocTokenTypes.CODE_LITERAL, "@code");
    javadocInlineTagContext1.addChild(codeLiteral0);
    CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocInlineTagContext1.addChild(ws4);
    TextContext textContext2 = new TextContext(javadocInlineTagContext1, 0);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "<");
    textContext2.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext2.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, ">");
    textContext2.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "W");
    textContext2.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext2.addChild(char14);
    CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext2.addChild(char15);
    CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "<");
    textContext2.addChild(char16);
    CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "/");
    textContext2.addChild(char17);
    CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext2.addChild(char18);
    CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, ">");
    textContext2.addChild(char19);
    javadocInlineTagContext1.addChild(textContext2);
    CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
    javadocInlineTagContext1.addChild(javadocInlineTagEnd0);
    descriptionContext1.addChild(javadocInlineTagContext1);
    javadocInlineTagContext0.addChild(descriptionContext1);
    CommonToken javadocInlineTagEnd1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
    javadocInlineTagContext0.addChild(javadocInlineTagEnd1);
    descriptionContext0.addChild(javadocInlineTagContext0);
    TextContext textContext3 = new TextContext(descriptionContext0, 0);
    CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext3.addChild(ws5);
    CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, "i");
    textContext3.addChild(char20);
    CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "n");
    textContext3.addChild(char21);
    CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext3.addChild(char22);
    CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "t");
    textContext3.addChild(char23);
    CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext3.addChild(char24);
    CommonToken char25 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext3.addChild(char25);
    CommonToken char26 = new CommonToken(JavadocTokenTypes.CHAR, "d");
    textContext3.addChild(char26);
    descriptionContext0.addChild(textContext3);
    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) JavadocContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext) JavadocInlineTagContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext) ReferenceContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ReferenceContext) 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 JavadocTagContext

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

the class ParseTreeBuilder method treeSince.

public static ParseTree treeSince() {
    JavadocContext javadocContext0 = new JavadocContext(null, 0);
    CommonToken leadingAsterisk0 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, "*");
    javadocContext0.addChild(leadingAsterisk0);
    CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocContext0.addChild(ws0);
    JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
    CommonToken sinceLiteral0 = new CommonToken(JavadocTokenTypes.SINCE_LITERAL, "@since");
    javadocTagContext0.addChild(sinceLiteral0);
    CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext0.addChild(ws1);
    DescriptionContext descriptionContext0 = new DescriptionContext(javadocTagContext0, 0);
    TextContext textContext0 = new TextContext(descriptionContext0, 0);
    CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "1");
    textContext0.addChild(char0);
    CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, ".");
    textContext0.addChild(char1);
    CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "5");
    textContext0.addChild(char2);
    descriptionContext0.addChild(textContext0);
    CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
    descriptionContext0.addChild(newline0);
    javadocTagContext0.addChild(descriptionContext0);
    javadocContext0.addChild(javadocTagContext0);
    CommonToken leadingAsterisk1 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
    javadocContext0.addChild(leadingAsterisk1);
    CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocContext0.addChild(ws2);
    JavadocTagContext javadocTagContext1 = new JavadocTagContext(javadocContext0, 0);
    CommonToken sinceLiteral1 = new CommonToken(JavadocTokenTypes.SINCE_LITERAL, "@since");
    javadocTagContext1.addChild(sinceLiteral1);
    CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
    javadocTagContext1.addChild(ws3);
    DescriptionContext descriptionContext1 = new DescriptionContext(javadocTagContext1, 0);
    TextContext textContext1 = new TextContext(descriptionContext1, 0);
    CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "R");
    textContext1.addChild(char3);
    CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char4);
    CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "l");
    textContext1.addChild(char5);
    CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char6);
    CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "a");
    textContext1.addChild(char7);
    CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "s");
    textContext1.addChild(char8);
    CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "e");
    textContext1.addChild(char9);
    CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
    textContext1.addChild(ws4);
    CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "3");
    textContext1.addChild(char10);
    CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, ".");
    textContext1.addChild(char11);
    CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "4");
    textContext1.addChild(char12);
    CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, ".");
    textContext1.addChild(char13);
    CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "5");
    textContext1.addChild(char14);
    descriptionContext1.addChild(textContext1);
    javadocTagContext1.addChild(descriptionContext1);
    javadocContext0.addChild(javadocTagContext1);
    CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
    javadocContext0.addChild(eof0);
    return javadocContext0;
}
Also used : TextContext(com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext) 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)

Aggregations

DescriptionContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.DescriptionContext)12 JavadocContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext)12 JavadocTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocTagContext)12 TextContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.TextContext)12 CommonToken (org.antlr.v4.runtime.CommonToken)12 ReferenceContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ReferenceContext)4 AttributeContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.AttributeContext)3 HtmlElementContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementContext)3 HtmlElementCloseContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementCloseContext)2 HtmlElementOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlElementOpenContext)2 HtmlTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.HtmlTagContext)2 ParametersContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.ParametersContext)2 JavadocInlineTagContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext)1 PTagOpenContext (com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.PTagOpenContext)1