use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeAllJavadocInlineTags.
public static ParseTree treeAllJavadocInlineTags() {
JavadocContext javadocContext0 = new JavadocContext(null, 0);
JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext0.addChild(javadocInlineTagStart0);
CommonToken codeLiteral0 = new CommonToken(JavadocTokenTypes.CODE_LITERAL, "@code");
javadocInlineTagContext0.addChild(codeLiteral0);
CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws0);
TextContext textContext0 = new TextContext(javadocInlineTagContext0, 0);
CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "<");
textContext0.addChild(char0);
CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext0.addChild(char1);
CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext0.addChild(char2);
CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext0.addChild(char3);
CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext0.addChild(char4);
CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, ">");
textContext0.addChild(char5);
javadocInlineTagContext0.addChild(textContext0);
CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext0.addChild(javadocInlineTagEnd0);
javadocContext0.addChild(javadocInlineTagContext0);
TextContext textContext1 = new TextContext(javadocContext0, 0);
CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext1.addChild(ws1);
javadocContext0.addChild(textContext1);
JavadocInlineTagContext javadocInlineTagContext1 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext1.addChild(javadocInlineTagStart1);
CommonToken literalLiteral0 = new CommonToken(JavadocTokenTypes.LITERAL_LITERAL, "@literal");
javadocInlineTagContext1.addChild(literalLiteral0);
CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext1.addChild(ws2);
TextContext textContext2 = new TextContext(javadocInlineTagContext1, 0);
CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "<");
textContext2.addChild(char6);
CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext2.addChild(char7);
CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext2.addChild(char8);
CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext2.addChild(char9);
CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext2.addChild(char10);
CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext2.addChild(char11);
CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext2.addChild(char12);
CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext2.addChild(char13);
CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, ">");
textContext2.addChild(char14);
javadocInlineTagContext1.addChild(textContext2);
CommonToken javadocInlineTagEnd1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext1.addChild(javadocInlineTagEnd1);
javadocContext0.addChild(javadocInlineTagContext1);
TextContext textContext3 = new TextContext(javadocContext0, 0);
CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws3);
javadocContext0.addChild(textContext3);
JavadocInlineTagContext javadocInlineTagContext2 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart2 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext2.addChild(javadocInlineTagStart2);
CommonToken docRootLiteral0 = new CommonToken(JavadocTokenTypes.DOC_ROOT_LITERAL, "@docRoot");
javadocInlineTagContext2.addChild(docRootLiteral0);
CommonToken javadocInlineTagEnd2 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext2.addChild(javadocInlineTagEnd2);
javadocContext0.addChild(javadocInlineTagContext2);
TextContext textContext4 = new TextContext(javadocContext0, 0);
CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext4.addChild(ws4);
javadocContext0.addChild(textContext4);
JavadocInlineTagContext javadocInlineTagContext3 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart3 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext3.addChild(javadocInlineTagStart3);
CommonToken inheritDocLiteral0 = new CommonToken(JavadocTokenTypes.INHERIT_DOC_LITERAL, "@inheritDoc");
javadocInlineTagContext3.addChild(inheritDocLiteral0);
CommonToken javadocInlineTagEnd3 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext3.addChild(javadocInlineTagEnd3);
javadocContext0.addChild(javadocInlineTagContext3);
TextContext textContext5 = new TextContext(javadocContext0, 0);
CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext5.addChild(ws5);
javadocContext0.addChild(textContext5);
JavadocInlineTagContext javadocInlineTagContext4 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart4 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext4.addChild(javadocInlineTagStart4);
CommonToken linkLiteral0 = new CommonToken(JavadocTokenTypes.LINK_LITERAL, "@link");
javadocInlineTagContext4.addChild(linkLiteral0);
CommonToken ws6 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext4.addChild(ws6);
ReferenceContext referenceContext0 = new ReferenceContext(javadocInlineTagContext4, 0);
CommonToken class0 = new CommonToken(JavadocTokenTypes.CLASS, "A");
referenceContext0.addChild(class0);
javadocInlineTagContext4.addChild(referenceContext0);
DescriptionContext descriptionContext0 = new DescriptionContext(javadocInlineTagContext4, 0);
TextContext textContext6 = new TextContext(descriptionContext0, 0);
CommonToken ws7 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext6.addChild(ws7);
CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "A");
textContext6.addChild(char15);
CommonToken ws8 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext6.addChild(ws8);
CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext6.addChild(char16);
CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext6.addChild(char17);
CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext6.addChild(char18);
CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext6.addChild(char19);
CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext6.addChild(char20);
descriptionContext0.addChild(textContext6);
javadocInlineTagContext4.addChild(descriptionContext0);
CommonToken javadocInlineTagEnd4 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext4.addChild(javadocInlineTagEnd4);
javadocContext0.addChild(javadocInlineTagContext4);
TextContext textContext7 = new TextContext(javadocContext0, 0);
CommonToken ws9 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext7.addChild(ws9);
javadocContext0.addChild(textContext7);
JavadocInlineTagContext javadocInlineTagContext5 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart5 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext5.addChild(javadocInlineTagStart5);
CommonToken linkplainLiteral0 = new CommonToken(JavadocTokenTypes.LINKPLAIN_LITERAL, "@linkplain");
javadocInlineTagContext5.addChild(linkplainLiteral0);
CommonToken ws10 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext5.addChild(ws10);
ReferenceContext referenceContext1 = new ReferenceContext(javadocInlineTagContext5, 0);
CommonToken class1 = new CommonToken(JavadocTokenTypes.CLASS, "A");
referenceContext1.addChild(class1);
javadocInlineTagContext5.addChild(referenceContext1);
DescriptionContext descriptionContext1 = new DescriptionContext(javadocInlineTagContext5, 0);
TextContext textContext8 = new TextContext(descriptionContext1, 0);
CommonToken ws11 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext8.addChild(ws11);
CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext8.addChild(char21);
CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext8.addChild(char22);
CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext8.addChild(char23);
CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext8.addChild(char24);
CommonToken char25 = new CommonToken(JavadocTokenTypes.CHAR, "h");
textContext8.addChild(char25);
CommonToken char26 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext8.addChild(char26);
CommonToken char27 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext8.addChild(char27);
CommonToken ws12 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext8.addChild(ws12);
CommonToken char28 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext8.addChild(char28);
CommonToken char29 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext8.addChild(char29);
CommonToken char30 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext8.addChild(char30);
CommonToken char31 = new CommonToken(JavadocTokenTypes.CHAR, "k");
textContext8.addChild(char31);
descriptionContext1.addChild(textContext8);
javadocInlineTagContext5.addChild(descriptionContext1);
CommonToken javadocInlineTagEnd5 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext5.addChild(javadocInlineTagEnd5);
javadocContext0.addChild(javadocInlineTagContext5);
TextContext textContext9 = new TextContext(javadocContext0, 0);
CommonToken ws13 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext9.addChild(ws13);
javadocContext0.addChild(textContext9);
JavadocInlineTagContext javadocInlineTagContext6 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart6 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext6.addChild(javadocInlineTagStart6);
CommonToken valueLiteral0 = new CommonToken(JavadocTokenTypes.VALUE_LITERAL, "@value");
javadocInlineTagContext6.addChild(valueLiteral0);
CommonToken ws14 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext6.addChild(ws14);
ReferenceContext referenceContext2 = new ReferenceContext(javadocInlineTagContext6, 0);
CommonToken package0 = new CommonToken(JavadocTokenTypes.PACKAGE, "lang");
referenceContext2.addChild(package0);
CommonToken dot0 = new CommonToken(JavadocTokenTypes.DOT, ".");
referenceContext2.addChild(dot0);
CommonToken class2 = new CommonToken(JavadocTokenTypes.CLASS, "Integer");
referenceContext2.addChild(class2);
CommonToken hash0 = new CommonToken(JavadocTokenTypes.HASH, "#");
referenceContext2.addChild(hash0);
CommonToken member0 = new CommonToken(JavadocTokenTypes.MEMBER, "MAX_VALUE");
referenceContext2.addChild(member0);
javadocInlineTagContext6.addChild(referenceContext2);
CommonToken javadocInlineTagEnd6 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext6.addChild(javadocInlineTagEnd6);
javadocContext0.addChild(javadocInlineTagContext6);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeLinkInlineTags.
public static ParseTree treeLinkInlineTags() {
JavadocContext javadocContext0 = new JavadocContext(null, 0);
JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(javadocContext0, 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 ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws0);
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);
CommonToken hash0 = new CommonToken(JavadocTokenTypes.HASH, "#");
referenceContext0.addChild(hash0);
CommonToken member0 = new CommonToken(JavadocTokenTypes.MEMBER, "valueOf");
referenceContext0.addChild(member0);
javadocInlineTagContext0.addChild(referenceContext0);
CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext0.addChild(javadocInlineTagEnd0);
javadocContext0.addChild(javadocInlineTagContext0);
CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline0);
JavadocInlineTagContext javadocInlineTagContext1 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext1.addChild(javadocInlineTagStart1);
CommonToken linkLiteral1 = new CommonToken(JavadocTokenTypes.LINK_LITERAL, "@link");
javadocInlineTagContext1.addChild(linkLiteral1);
CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext1.addChild(ws1);
ReferenceContext referenceContext1 = new ReferenceContext(javadocInlineTagContext1, 0);
CommonToken package1 = new CommonToken(JavadocTokenTypes.PACKAGE, "java.lang");
referenceContext1.addChild(package1);
CommonToken dot1 = new CommonToken(JavadocTokenTypes.DOT, ".");
referenceContext1.addChild(dot1);
CommonToken class1 = new CommonToken(JavadocTokenTypes.CLASS, "Integer");
referenceContext1.addChild(class1);
CommonToken hash1 = new CommonToken(JavadocTokenTypes.HASH, "#");
referenceContext1.addChild(hash1);
CommonToken member1 = new CommonToken(JavadocTokenTypes.MEMBER, "valueOf");
referenceContext1.addChild(member1);
javadocInlineTagContext1.addChild(referenceContext1);
DescriptionContext descriptionContext0 = new DescriptionContext(javadocInlineTagContext1, 0);
TextContext textContext0 = new TextContext(descriptionContext0, 0);
CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext0.addChild(ws2);
CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "v");
textContext0.addChild(char0);
CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext0.addChild(char1);
CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext0.addChild(char2);
CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "u");
textContext0.addChild(char3);
CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext0.addChild(char4);
CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "O");
textContext0.addChild(char5);
CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "f");
textContext0.addChild(char6);
descriptionContext0.addChild(textContext0);
javadocInlineTagContext1.addChild(descriptionContext0);
CommonToken javadocInlineTagEnd1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext1.addChild(javadocInlineTagEnd1);
javadocContext0.addChild(javadocInlineTagContext1);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeAsteriskInLiteral.
public static ParseTree treeAsteriskInLiteral() {
JavadocContext javadocContext0 = new JavadocContext(null, 0);
JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext0.addChild(javadocInlineTagStart0);
CommonToken literalLiteral0 = new CommonToken(JavadocTokenTypes.LITERAL_LITERAL, "@literal");
javadocInlineTagContext0.addChild(literalLiteral0);
CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws0);
TextContext textContext0 = new TextContext(javadocInlineTagContext0, 0);
CommonToken char0 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext0.addChild(char0);
CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext0.addChild(char1);
CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, LINE_SEPARATOR);
textContext0.addChild(char2);
javadocInlineTagContext0.addChild(textContext0);
CommonToken leadingAsterisk0 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, "*");
javadocInlineTagContext0.addChild(leadingAsterisk0);
TextContext textContext1 = new TextContext(javadocInlineTagContext0, 0);
CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, " ");
textContext1.addChild(char3);
CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext1.addChild(char4);
CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext1.addChild(char5);
javadocInlineTagContext0.addChild(textContext1);
CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext0.addChild(javadocInlineTagEnd0);
javadocContext0.addChild(javadocInlineTagContext0);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeDocRootInheritDoc.
public static ParseTree treeDocRootInheritDoc() {
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);
JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext0.addChild(javadocInlineTagStart0);
CommonToken docRootLiteral0 = new CommonToken(JavadocTokenTypes.DOC_ROOT_LITERAL, "@docRoot");
javadocInlineTagContext0.addChild(docRootLiteral0);
CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext0.addChild(javadocInlineTagEnd0);
javadocContext0.addChild(javadocInlineTagContext0);
CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline1);
CommonToken leadingAsterisk1 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocContext0.addChild(leadingAsterisk1);
TextContext textContext1 = new TextContext(javadocContext0, 0);
CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext1.addChild(ws1);
javadocContext0.addChild(textContext1);
JavadocInlineTagContext javadocInlineTagContext1 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext1.addChild(javadocInlineTagStart1);
CommonToken docRootLiteral1 = new CommonToken(JavadocTokenTypes.DOC_ROOT_LITERAL, "@docRoot");
javadocInlineTagContext1.addChild(docRootLiteral1);
CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext1.addChild(ws2);
CommonToken javadocInlineTagEnd1 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext1.addChild(javadocInlineTagEnd1);
javadocContext0.addChild(javadocInlineTagContext1);
CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline2);
CommonToken leadingAsterisk2 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocContext0.addChild(leadingAsterisk2);
TextContext textContext2 = new TextContext(javadocContext0, 0);
CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext2.addChild(ws3);
javadocContext0.addChild(textContext2);
JavadocInlineTagContext javadocInlineTagContext2 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart2 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext2.addChild(javadocInlineTagStart2);
CommonToken docRootLiteral2 = new CommonToken(JavadocTokenTypes.DOC_ROOT_LITERAL, "@docRoot");
javadocInlineTagContext2.addChild(docRootLiteral2);
CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocInlineTagContext2.addChild(newline3);
CommonToken leadingAsterisk3 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocInlineTagContext2.addChild(leadingAsterisk3);
CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext2.addChild(ws4);
CommonToken javadocInlineTagEnd2 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext2.addChild(javadocInlineTagEnd2);
javadocContext0.addChild(javadocInlineTagContext2);
CommonToken newline4 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline4);
CommonToken leadingAsterisk4 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocContext0.addChild(leadingAsterisk4);
TextContext textContext3 = new TextContext(javadocContext0, 0);
CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws5);
javadocContext0.addChild(textContext3);
JavadocInlineTagContext javadocInlineTagContext3 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart3 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext3.addChild(javadocInlineTagStart3);
CommonToken inheritDocLiteral0 = new CommonToken(JavadocTokenTypes.INHERIT_DOC_LITERAL, "@inheritDoc");
javadocInlineTagContext3.addChild(inheritDocLiteral0);
CommonToken javadocInlineTagEnd3 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext3.addChild(javadocInlineTagEnd3);
javadocContext0.addChild(javadocInlineTagContext3);
CommonToken newline5 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline5);
CommonToken leadingAsterisk5 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocContext0.addChild(leadingAsterisk5);
TextContext textContext4 = new TextContext(javadocContext0, 0);
CommonToken ws6 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext4.addChild(ws6);
javadocContext0.addChild(textContext4);
JavadocInlineTagContext javadocInlineTagContext4 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart4 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext4.addChild(javadocInlineTagStart4);
CommonToken inheritDocLiteral1 = new CommonToken(JavadocTokenTypes.INHERIT_DOC_LITERAL, "@inheritDoc");
javadocInlineTagContext4.addChild(inheritDocLiteral1);
CommonToken ws7 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext4.addChild(ws7);
CommonToken javadocInlineTagEnd4 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext4.addChild(javadocInlineTagEnd4);
javadocContext0.addChild(javadocInlineTagContext4);
CommonToken newline6 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline6);
CommonToken leadingAsterisk6 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocContext0.addChild(leadingAsterisk6);
TextContext textContext5 = new TextContext(javadocContext0, 0);
CommonToken ws8 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext5.addChild(ws8);
javadocContext0.addChild(textContext5);
JavadocInlineTagContext javadocInlineTagContext5 = new JavadocInlineTagContext(javadocContext0, 0);
CommonToken javadocInlineTagStart5 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_START, "{");
javadocInlineTagContext5.addChild(javadocInlineTagStart5);
CommonToken inheritDocLiteral2 = new CommonToken(JavadocTokenTypes.INHERIT_DOC_LITERAL, "@inheritDoc");
javadocInlineTagContext5.addChild(inheritDocLiteral2);
CommonToken newline7 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocInlineTagContext5.addChild(newline7);
CommonToken leadingAsterisk7 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocInlineTagContext5.addChild(leadingAsterisk7);
CommonToken ws9 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext5.addChild(ws9);
CommonToken javadocInlineTagEnd5 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext5.addChild(javadocInlineTagEnd5);
javadocContext0.addChild(javadocInlineTagContext5);
CommonToken newline8 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocContext0.addChild(newline8);
TextContext textContext6 = new TextContext(javadocContext0, 0);
CommonToken ws10 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext6.addChild(ws10);
javadocContext0.addChild(textContext6);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocInlineTagContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeDollarInLink.
public static ParseTree treeDollarInLink() {
JavadocContext javadocContext0 = new JavadocContext(null, 0);
JavadocInlineTagContext javadocInlineTagContext0 = new JavadocInlineTagContext(javadocContext0, 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 ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws0);
ReferenceContext referenceContext0 = new ReferenceContext(javadocInlineTagContext0, 0);
CommonToken class0 = new CommonToken(JavadocTokenTypes.CLASS, "My$Class");
referenceContext0.addChild(class0);
CommonToken hash0 = new CommonToken(JavadocTokenTypes.HASH, "#");
referenceContext0.addChild(hash0);
CommonToken member0 = new CommonToken(JavadocTokenTypes.MEMBER, "$$simple_$Method");
referenceContext0.addChild(member0);
ParametersContext parametersContext0 = new ParametersContext(referenceContext0, 0);
CommonToken leftBrace0 = new CommonToken(JavadocTokenTypes.LEFT_BRACE, "(");
parametersContext0.addChild(leftBrace0);
CommonToken argument0 = new CommonToken(JavadocTokenTypes.ARGUMENT, "_A78");
parametersContext0.addChild(argument0);
CommonToken comma0 = new CommonToken(JavadocTokenTypes.COMMA, ",");
parametersContext0.addChild(comma0);
CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
parametersContext0.addChild(ws1);
CommonToken argument1 = new CommonToken(JavadocTokenTypes.ARGUMENT, "$8$");
parametersContext0.addChild(argument1);
CommonToken rightBrace0 = new CommonToken(JavadocTokenTypes.RIGHT_BRACE, ")");
parametersContext0.addChild(rightBrace0);
referenceContext0.addChild(parametersContext0);
javadocInlineTagContext0.addChild(referenceContext0);
CommonToken javadocInlineTagEnd0 = new CommonToken(JavadocTokenTypes.JAVADOC_INLINE_TAG_END, "}");
javadocInlineTagContext0.addChild(javadocInlineTagEnd0);
javadocContext0.addChild(javadocInlineTagContext0);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
Aggregations