public class DocCommentParser extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Field and Description |
---|---|
protected int |
bp |
protected char[] |
buf
The input buffer, index of most recent character read,
index of one past last character in buffer.
|
protected int |
buflen |
protected char |
ch
The current character.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPendingText(ListBuffer<DCTree> list,
int textEnd) |
protected void |
attrValueChar(ListBuffer<DCTree> list) |
protected List<DCTree> |
blockContent()
Read block content, consisting of text, html and inline tags.
|
protected DCTree |
blockTag()
Read a single block tag, including its content.
|
protected List<DCTree> |
blockTags()
Read a series of block tags, including their content.
|
protected DCTree |
entity()
Read an HTML entity.
|
protected void |
entity(ListBuffer<DCTree> list) |
protected DCTree.DCErroneous |
erroneous(String code,
int pos) |
protected int |
getSentenceBreak(String s) |
protected DCTree |
html()
Read the start or end of an HTML tag, or an HTML comment
<identifier attrs> or </identifier>
|
protected List<DCTree> |
htmlAttrs()
Read a series of HTML attributes, terminated by > .
|
protected DCTree.DCIdentifier |
identifier()
Read Java identifier
Matching pairs of { } are skipped; the text is terminated by the first
unmatched }.
|
protected List<DCTree> |
inlineContent()
Read general text content of an inline tag, including HTML entities and elements.
|
protected DCTree |
inlineTag()
Read a single inline tag, including its content.
|
protected void |
inlineTag(ListBuffer<DCTree> list) |
protected DCTree |
inlineText()
Read plain text content of an inline tag.
|
protected boolean |
isDecimalDigit(char ch) |
protected boolean |
isHexDigit(char ch) |
protected boolean |
isIdentifierStart(char ch) |
protected boolean |
isJavaIdentifierStart(char ch) |
protected boolean |
isSentenceBreak(DCTree t) |
protected boolean |
isSentenceBreak(Name n) |
protected boolean |
isUnquotedAttrValueTerminator(char ch) |
protected boolean |
isWhitespace(char ch) |
protected DCTree.DCText |
quotedString()
Read a quoted string.
|
protected Name |
readIdentifier() |
protected Name |
readJavaIdentifier() |
protected Name |
readTagName() |
protected DCTree.DCReference |
reference(boolean allowMember)
Read Java class name, possibly followed by member
Matching pairs of < > are skipped.
|
protected void |
skipWhitespace() |
protected char[] buf
protected int bp
protected int buflen
protected char ch
protected List<DCTree> blockContent()
protected List<DCTree> blockTags()
UnknownBlockTag
.protected DCTree blockTag()
UnknownBlockTag
.protected void inlineTag(ListBuffer<DCTree> list)
protected DCTree inlineTag()
UnknownBlockTag
.
Malformed tags may be returned as Erroneous
.protected DCTree inlineText() throws com.sun.tools.javac.parser.DocCommentParser.ParseException
com.sun.tools.javac.parser.DocCommentParser.ParseException
protected DCTree.DCReference reference(boolean allowMember) throws com.sun.tools.javac.parser.DocCommentParser.ParseException
com.sun.tools.javac.parser.DocCommentParser.ParseException
protected DCTree.DCIdentifier identifier() throws com.sun.tools.javac.parser.DocCommentParser.ParseException
com.sun.tools.javac.parser.DocCommentParser.ParseException
protected DCTree.DCText quotedString()
protected List<DCTree> inlineContent()
protected void entity(ListBuffer<DCTree> list)
protected DCTree entity()
protected DCTree html()
protected List<DCTree> htmlAttrs()
protected void attrValueChar(ListBuffer<DCTree> list)
protected void addPendingText(ListBuffer<DCTree> list, int textEnd)
protected DCTree.DCErroneous erroneous(String code, int pos)
protected boolean isIdentifierStart(char ch)
protected Name readIdentifier()
protected Name readTagName()
protected boolean isJavaIdentifierStart(char ch)
protected Name readJavaIdentifier()
protected boolean isDecimalDigit(char ch)
protected boolean isHexDigit(char ch)
protected boolean isUnquotedAttrValueTerminator(char ch)
protected boolean isWhitespace(char ch)
protected void skipWhitespace()
protected int getSentenceBreak(String s)
protected boolean isSentenceBreak(Name n)
protected boolean isSentenceBreak(DCTree t)
Copyright © 2017 earcam. All rights reserved.