com.sun.tools.javac.tree.DCTree.DCText Java Examples
The following examples show how to use
com.sun.tools.javac.tree.DCTree.DCText.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DocCommentParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #2
Source File: DocCommentParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #3
Source File: DocCommentParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #4
Source File: DocCommentParser.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #5
Source File: DocCommentParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Read a term ie. one word. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText inlineWord() { int pos = bp; int depth = 0; loop: while (bp < buflen) { switch (ch) { case '\n': newline = true; // fallthrough case '\r': case '\f': case ' ': case '\t': return m.at(pos).newTextTree(newString(pos, bp)); case '@': if (newline) break loop; case '{': depth++; break; case '}': if (depth == 0 || --depth == 0) return m.at(pos).newTextTree(newString(pos, bp)); break; } newline = false; nextChar(); } return null; }
Example #6
Source File: DocCommentParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).newTextTree(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #7
Source File: DocCommentParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #8
Source File: DocCommentParser.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Read a term ie. one word. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText inlineWord() { int pos = bp; int depth = 0; loop: while (bp < buflen) { switch (ch) { case '\n': newline = true; // fallthrough case '\r': case '\f': case ' ': case '\t': return m.at(pos).newTextTree(newString(pos, bp)); case '@': if (newline) break loop; case '{': depth++; break; case '}': if (depth == 0 || --depth == 0) return m.at(pos).newTextTree(newString(pos, bp)); break; } newline = false; nextChar(); } return null; }
Example #9
Source File: DocCommentParser.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).newTextTree(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #10
Source File: DocCommentParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #11
Source File: DocCommentParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Read a quoted string. * It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCText quotedString() { int pos = bp; nextChar(); loop: while (bp < buflen) { switch (ch) { case '\n': case '\r': case '\f': newline = true; break; case ' ': case '\t': break; case '"': nextChar(); // trim trailing white-space? return m.at(pos).Text(newString(pos, bp)); case '@': if (newline) break loop; } nextChar(); } return null; }
Example #12
Source File: DocTreeMaker.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCText newTextTree(String text) { DCText tree = new DCText(text); tree.pos = pos; return tree; }
Example #13
Source File: DocTreeMaker.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCLiteral newLiteralTree(TextTree text) { DCLiteral tree = new DCLiteral(Kind.LITERAL, (DCText) text); tree.pos = pos; return tree; }
Example #14
Source File: DocTreeMaker.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCLiteral newCodeTree(TextTree text) { DCLiteral tree = new DCLiteral(Kind.CODE, (DCText) text); tree.pos = pos; return tree; }
Example #15
Source File: DocTreeMaker.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCLiteral newCodeTree(TextTree text) { DCLiteral tree = new DCLiteral(Kind.CODE, (DCText) text); tree.pos = pos; return tree; }
Example #16
Source File: DocTreeMaker.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCLiteral newLiteralTree(TextTree text) { DCLiteral tree = new DCLiteral(Kind.LITERAL, (DCText) text); tree.pos = pos; return tree; }
Example #17
Source File: DocTreeMaker.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public DCText newTextTree(String text) { DCText tree = new DCText(text); tree.pos = pos; return tree; }