use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeNewlineAndAsteriskInParameters.
public static ParseTree treeNewlineAndAsteriskInParameters() {
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);
javadocContext0.addChild(textContext0);
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 ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws1);
ReferenceContext referenceContext0 = new ReferenceContext(javadocInlineTagContext0, 0);
CommonToken class0 = new CommonToken(JavadocTokenTypes.CLASS, "ImmutableSortedMap");
referenceContext0.addChild(class0);
CommonToken hash0 = new CommonToken(JavadocTokenTypes.HASH, "#");
referenceContext0.addChild(hash0);
CommonToken member0 = new CommonToken(JavadocTokenTypes.MEMBER, "of");
referenceContext0.addChild(member0);
ParametersContext parametersContext0 = new ParametersContext(referenceContext0, 0);
CommonToken leftBrace0 = new CommonToken(JavadocTokenTypes.LEFT_BRACE, "(");
parametersContext0.addChild(leftBrace0);
CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
parametersContext0.addChild(newline0);
CommonToken leadingAsterisk1 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
parametersContext0.addChild(leadingAsterisk1);
CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
parametersContext0.addChild(newline1);
CommonToken leadingAsterisk2 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
parametersContext0.addChild(leadingAsterisk2);
CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
parametersContext0.addChild(ws2);
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;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeAsteriskInJavadocInlineTag.
public static ParseTree treeAsteriskInJavadocInlineTag() {
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 newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
javadocInlineTagContext0.addChild(newline0);
CommonToken leadingAsterisk0 = new CommonToken(JavadocTokenTypes.LEADING_ASTERISK, " *");
javadocInlineTagContext0.addChild(leadingAsterisk0);
CommonToken ws0 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocInlineTagContext0.addChild(ws0);
ReferenceContext referenceContext0 = new ReferenceContext(javadocInlineTagContext0, 0);
CommonToken class0 = new CommonToken(JavadocTokenTypes.CLASS, "GwtIncompatible");
referenceContext0.addChild(class0);
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;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeInnerBracesInCodeTag.
public static ParseTree treeInnerBracesInCodeTag() {
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, " ");
textContext0.addChild(char1);
javadocInlineTagContext0.addChild(textContext0);
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.JavadocContext in project checkstyle by checkstyle.
the class ParseTreeBuilder method treeSerial.
public static ParseTree treeSerial() {
JavadocContext javadocContext0 = new JavadocContext(null, 0);
JavadocTagContext javadocTagContext0 = new JavadocTagContext(javadocContext0, 0);
CommonToken serialLiteral0 = new CommonToken(JavadocTokenTypes.SERIAL_LITERAL, "@serial");
javadocTagContext0.addChild(serialLiteral0);
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, "f");
textContext0.addChild(char0);
CommonToken char1 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext0.addChild(char1);
CommonToken char2 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext0.addChild(char2);
CommonToken char3 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext0.addChild(char3);
CommonToken char4 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext0.addChild(char4);
CommonToken ws1 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext0.addChild(ws1);
CommonToken char5 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext0.addChild(char5);
CommonToken char6 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext0.addChild(char6);
CommonToken char7 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext0.addChild(char7);
CommonToken char8 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext0.addChild(char8);
CommonToken char9 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext0.addChild(char9);
CommonToken char10 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext0.addChild(char10);
CommonToken char11 = new CommonToken(JavadocTokenTypes.CHAR, "p");
textContext0.addChild(char11);
CommonToken char12 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext0.addChild(char12);
CommonToken char13 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext0.addChild(char13);
CommonToken char14 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext0.addChild(char14);
CommonToken char15 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext0.addChild(char15);
descriptionContext0.addChild(textContext0);
CommonToken newline0 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext0.addChild(newline0);
TextContext textContext1 = new TextContext(descriptionContext0, 0);
CommonToken char16 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext1.addChild(char16);
CommonToken char17 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext1.addChild(char17);
CommonToken ws2 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext1.addChild(ws2);
CommonToken char18 = new CommonToken(JavadocTokenTypes.CHAR, "f");
textContext1.addChild(char18);
CommonToken char19 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext1.addChild(char19);
CommonToken char20 = new CommonToken(JavadocTokenTypes.CHAR, "w");
textContext1.addChild(char20);
CommonToken ws3 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext1.addChild(ws3);
CommonToken char21 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext1.addChild(char21);
CommonToken char22 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext1.addChild(char22);
CommonToken char23 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext1.addChild(char23);
CommonToken char24 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext1.addChild(char24);
CommonToken char25 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext1.addChild(char25);
descriptionContext0.addChild(textContext1);
CommonToken newline1 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext0.addChild(newline1);
TextContext textContext2 = new TextContext(descriptionContext0, 0);
CommonToken char26 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext2.addChild(char26);
CommonToken char27 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext2.addChild(char27);
CommonToken char28 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext2.addChild(char28);
CommonToken ws4 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext2.addChild(ws4);
CommonToken char29 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext2.addChild(char29);
CommonToken char30 = new CommonToken(JavadocTokenTypes.CHAR, "v");
textContext2.addChild(char30);
CommonToken char31 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext2.addChild(char31);
CommonToken char32 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext2.addChild(char32);
CommonToken ws5 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext2.addChild(ws5);
CommonToken char33 = new CommonToken(JavadocTokenTypes.CHAR, "h");
textContext2.addChild(char33);
CommonToken char34 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext2.addChild(char34);
CommonToken char35 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext2.addChild(char35);
CommonToken char36 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext2.addChild(char36);
descriptionContext0.addChild(textContext2);
CommonToken newline2 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext0.addChild(newline2);
javadocTagContext0.addChild(descriptionContext0);
javadocContext0.addChild(javadocTagContext0);
JavadocTagContext javadocTagContext1 = new JavadocTagContext(javadocContext0, 0);
CommonToken serialLiteral1 = new CommonToken(JavadocTokenTypes.SERIAL_LITERAL, "@serial");
javadocTagContext1.addChild(serialLiteral1);
CommonToken ws6 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext1.addChild(ws6);
CommonToken literalInclude0 = new CommonToken(JavadocTokenTypes.LITERAL_INCLUDE, "include");
javadocTagContext1.addChild(literalInclude0);
DescriptionContext descriptionContext1 = new DescriptionContext(javadocTagContext1, 0);
CommonToken newline3 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext1.addChild(newline3);
javadocTagContext1.addChild(descriptionContext1);
javadocContext0.addChild(javadocTagContext1);
JavadocTagContext javadocTagContext2 = new JavadocTagContext(javadocContext0, 0);
CommonToken serialLiteral2 = new CommonToken(JavadocTokenTypes.SERIAL_LITERAL, "@serial");
javadocTagContext2.addChild(serialLiteral2);
CommonToken ws7 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext2.addChild(ws7);
CommonToken literalExclude0 = new CommonToken(JavadocTokenTypes.LITERAL_EXCLUDE, "exclude");
javadocTagContext2.addChild(literalExclude0);
DescriptionContext descriptionContext2 = new DescriptionContext(javadocTagContext2, 0);
CommonToken newline4 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext2.addChild(newline4);
javadocTagContext2.addChild(descriptionContext2);
javadocContext0.addChild(javadocTagContext2);
JavadocTagContext javadocTagContext3 = new JavadocTagContext(javadocContext0, 0);
CommonToken serialFieldLiteral0 = new CommonToken(JavadocTokenTypes.SERIAL_FIELD_LITERAL, "@serialField");
javadocTagContext3.addChild(serialFieldLiteral0);
CommonToken ws8 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext3.addChild(ws8);
CommonToken fieldName0 = new CommonToken(JavadocTokenTypes.FIELD_NAME, "myField");
javadocTagContext3.addChild(fieldName0);
CommonToken ws9 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext3.addChild(ws9);
CommonToken fieldType0 = new CommonToken(JavadocTokenTypes.FIELD_TYPE, "myObjectStreamField");
javadocTagContext3.addChild(fieldType0);
CommonToken ws10 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext3.addChild(ws10);
DescriptionContext descriptionContext3 = new DescriptionContext(javadocTagContext3, 0);
TextContext textContext3 = new TextContext(descriptionContext3, 0);
CommonToken char37 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext3.addChild(char37);
CommonToken char38 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext3.addChild(char38);
CommonToken char39 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext3.addChild(char39);
CommonToken char40 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext3.addChild(char40);
CommonToken char41 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext3.addChild(char41);
CommonToken char42 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext3.addChild(char42);
CommonToken char43 = new CommonToken(JavadocTokenTypes.CHAR, "p");
textContext3.addChild(char43);
CommonToken char44 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext3.addChild(char44);
CommonToken char45 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext3.addChild(char45);
CommonToken char46 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext3.addChild(char46);
CommonToken char47 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext3.addChild(char47);
CommonToken ws11 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws11);
CommonToken char48 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext3.addChild(char48);
CommonToken char49 = new CommonToken(JavadocTokenTypes.CHAR, "f");
textContext3.addChild(char49);
CommonToken ws12 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws12);
CommonToken char50 = new CommonToken(JavadocTokenTypes.CHAR, "m");
textContext3.addChild(char50);
CommonToken char51 = new CommonToken(JavadocTokenTypes.CHAR, "y");
textContext3.addChild(char51);
CommonToken ws13 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws13);
CommonToken char52 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext3.addChild(char52);
CommonToken char53 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext3.addChild(char53);
CommonToken char54 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext3.addChild(char54);
CommonToken char55 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext3.addChild(char55);
CommonToken char56 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext3.addChild(char56);
CommonToken char57 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext3.addChild(char57);
CommonToken ws14 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext3.addChild(ws14);
CommonToken char58 = new CommonToken(JavadocTokenTypes.CHAR, "f");
textContext3.addChild(char58);
CommonToken char59 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext3.addChild(char59);
CommonToken char60 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext3.addChild(char60);
CommonToken char61 = new CommonToken(JavadocTokenTypes.CHAR, "l");
textContext3.addChild(char61);
CommonToken char62 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext3.addChild(char62);
descriptionContext3.addChild(textContext3);
CommonToken newline5 = new CommonToken(JavadocTokenTypes.NEWLINE, LINE_SEPARATOR);
descriptionContext3.addChild(newline5);
javadocTagContext3.addChild(descriptionContext3);
javadocContext0.addChild(javadocTagContext3);
JavadocTagContext javadocTagContext4 = new JavadocTagContext(javadocContext0, 0);
CommonToken serialDataLiteral0 = new CommonToken(JavadocTokenTypes.SERIAL_DATA_LITERAL, "@serialData");
javadocTagContext4.addChild(serialDataLiteral0);
CommonToken ws15 = new CommonToken(JavadocTokenTypes.WS, " ");
javadocTagContext4.addChild(ws15);
DescriptionContext descriptionContext4 = new DescriptionContext(javadocTagContext4, 0);
TextContext textContext4 = new TextContext(descriptionContext4, 0);
CommonToken char63 = new CommonToken(JavadocTokenTypes.CHAR, "T");
textContext4.addChild(char63);
CommonToken char64 = new CommonToken(JavadocTokenTypes.CHAR, "h");
textContext4.addChild(char64);
CommonToken char65 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext4.addChild(char65);
CommonToken ws16 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext4.addChild(ws16);
CommonToken char66 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext4.addChild(char66);
CommonToken char67 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext4.addChild(char67);
CommonToken char68 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext4.addChild(char68);
CommonToken char69 = new CommonToken(JavadocTokenTypes.CHAR, "a");
textContext4.addChild(char69);
CommonToken char70 = new CommonToken(JavadocTokenTypes.CHAR, "-");
textContext4.addChild(char70);
CommonToken char71 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext4.addChild(char71);
CommonToken char72 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext4.addChild(char72);
CommonToken char73 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext4.addChild(char73);
CommonToken char74 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext4.addChild(char74);
CommonToken char75 = new CommonToken(JavadocTokenTypes.CHAR, "r");
textContext4.addChild(char75);
CommonToken char76 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext4.addChild(char76);
CommonToken char77 = new CommonToken(JavadocTokenTypes.CHAR, "p");
textContext4.addChild(char77);
CommonToken char78 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext4.addChild(char78);
CommonToken char79 = new CommonToken(JavadocTokenTypes.CHAR, "i");
textContext4.addChild(char79);
CommonToken char80 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext4.addChild(char80);
CommonToken char81 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext4.addChild(char81);
CommonToken ws17 = new CommonToken(JavadocTokenTypes.WS, " ");
textContext4.addChild(ws17);
CommonToken char82 = new CommonToken(JavadocTokenTypes.CHAR, "d");
textContext4.addChild(char82);
CommonToken char83 = new CommonToken(JavadocTokenTypes.CHAR, "o");
textContext4.addChild(char83);
CommonToken char84 = new CommonToken(JavadocTokenTypes.CHAR, "c");
textContext4.addChild(char84);
CommonToken char85 = new CommonToken(JavadocTokenTypes.CHAR, "u");
textContext4.addChild(char85);
CommonToken char86 = new CommonToken(JavadocTokenTypes.CHAR, "m");
textContext4.addChild(char86);
CommonToken char87 = new CommonToken(JavadocTokenTypes.CHAR, "e");
textContext4.addChild(char87);
CommonToken char88 = new CommonToken(JavadocTokenTypes.CHAR, "n");
textContext4.addChild(char88);
CommonToken char89 = new CommonToken(JavadocTokenTypes.CHAR, "t");
textContext4.addChild(char89);
CommonToken char90 = new CommonToken(JavadocTokenTypes.CHAR, "s");
textContext4.addChild(char90);
descriptionContext4.addChild(textContext4);
javadocTagContext4.addChild(descriptionContext4);
javadocContext0.addChild(javadocTagContext4);
CommonToken eof0 = new CommonToken(JavadocTokenTypes.EOF, "<EOF>");
javadocContext0.addChild(eof0);
return javadocContext0;
}
use of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.JavadocContext 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;
}
Aggregations