Class JavaScriptScanner
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.JavaScriptScanner
Deprecated.
Parser to detect use of JavaScript in documentation comments.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Deprecated.static interface
Deprecated.(package private) static class
Deprecated.private static enum
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Deprecated.protected char[]
Deprecated.The input buffer, index of most recent character read, index of one past last character in buffer.protected int
Deprecated.protected char
Deprecated.The current character.Deprecated.private boolean
Deprecated.private JavaScriptScanner.Reporter
Deprecated.(package private) Map<String,
JavaScriptScanner.TagParser> Deprecated.Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
attrValueChar
(Void list) Deprecated.protected void
Deprecated.Read block content, consisting of text, html and inline tags.protected void
blockTag()
Deprecated.Read a single block tag, including its content.protected void
Deprecated.Read a series of block tags, including their content.private void
checkHtmlAttr
(String name, String value) Deprecated.private void
checkHtmlTag
(String tag) Deprecated.protected void
entity()
Deprecated.Read an HTML entity.protected void
Deprecated.protected void
html()
Deprecated.Read the start or end of an HTML tag, or an HTML comment <identifier attrs> or </identifier>protected void
Deprecated.Read a series of HTML attributes, terminated by > .protected void
Deprecated.Read Java identifier Matching pairs of { } are skipped; the text is terminated by the first unmatched }.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.Read general text content of an inline tag, including HTML entities and elements.protected void
Deprecated.Read a single inline tag, including its content.protected void
Deprecated.private void
inlineText
(JavaScriptScanner.WhitespaceRetentionPolicy whitespacePolicy) Deprecated.Read plain text content of an inline tag.protected void
Deprecated.Read a term ie.protected boolean
isDecimalDigit
(char ch) Deprecated.protected boolean
isHexDigit
(char ch) Deprecated.protected boolean
isIdentifierStart
(char ch) Deprecated.protected boolean
isJavaIdentifierStart
(char ch) Deprecated.protected boolean
isUnquotedAttrValueTerminator
(char ch) Deprecated.protected boolean
isWhitespace
(char ch) Deprecated.(package private) String
newString
(int start, int end) Deprecated.(package private) void
nextChar()
Deprecated.void
parse
(String comment, JavaScriptScanner.Reporter r) Deprecated.protected void
Deprecated.Read a quoted string.protected String
Deprecated.protected String
Deprecated.protected String
Deprecated.protected String
Deprecated.protected void
reference
(boolean allowMember) Deprecated.Read Java class name, possibly followed by member Matching pairs of < > are skipped.protected void
Deprecated.
-
Field Details
-
reporter
Deprecated. -
buf
protected char[] bufDeprecated.The input buffer, index of most recent character read, index of one past last character in buffer. -
bp
protected int bpDeprecated. -
buflen
protected int buflenDeprecated. -
ch
protected char chDeprecated.The current character. -
newline
private boolean newlineDeprecated. -
tagParsers
Map<String,JavaScriptScanner.TagParser> tagParsersDeprecated. -
eventAttrs
Deprecated. -
uriAttrs
Deprecated.
-
-
Constructor Details
-
JavaScriptScanner
public JavaScriptScanner()Deprecated.
-
-
Method Details
-
parse
Deprecated. -
checkHtmlTag
Deprecated. -
checkHtmlAttr
Deprecated. -
nextChar
void nextChar()Deprecated. -
blockContent
protected void blockContent()Deprecated.Read block content, consisting of text, html and inline tags. Terminated by the end of input, or the beginning of the next block tag: i.e. @ as the first non-whitespace character on a line. -
blockTags
protected void blockTags()Deprecated.Read a series of block tags, including their content. Standard tags parse their content appropriately. Non-standard tags are represented byUnknownBlockTag
. -
blockTag
protected void blockTag()Deprecated.Read a single block tag, including its content. Standard tags parse their content appropriately. Non-standard tags are represented byUnknownBlockTag
. -
inlineTag
Deprecated. -
inlineTag
protected void inlineTag()Deprecated.Read a single inline tag, including its content. Standard tags parse their content appropriately. Non-standard tags are represented byUnknownBlockTag
. Malformed tags may be returned asErroneous
. -
inlineText
private void inlineText(JavaScriptScanner.WhitespaceRetentionPolicy whitespacePolicy) throws JavaScriptScanner.ParseException Deprecated.Read plain text content of an inline tag. Matching pairs of { } are skipped; the text is terminated by the first unmatched }. It is an error if the beginning of the next tag is detected.- Throws:
JavaScriptScanner.ParseException
-
reference
Deprecated.Read Java class name, possibly followed by member Matching pairs of < > are skipped. The text is terminated by the first unmatched }. It is an error if the beginning of the next tag is detected.- Throws:
JavaScriptScanner.ParseException
-
identifier
Deprecated.Read Java identifier Matching pairs of { } are skipped; the text is terminated by the first unmatched }. It is an error if the beginning of the next tag is detected.- Throws:
JavaScriptScanner.ParseException
-
quotedString
protected void quotedString()Deprecated.Read a quoted string. It is an error if the beginning of the next tag is detected. -
inlineWord
protected void inlineWord()Deprecated.Read a term ie. one word. It is an error if the beginning of the next tag is detected. -
inlineContent
private void inlineContent()Deprecated.Read general text content of an inline tag, including HTML entities and elements. Matching pairs of { } are skipped; the text is terminated by the first unmatched }. It is an error if the beginning of the next tag is detected. -
entity
Deprecated. -
entity
protected void entity()Deprecated.Read an HTML entity. &identifier; or &#digits; or &#xhex-digits; -
html
protected void html()Deprecated.Read the start or end of an HTML tag, or an HTML comment <identifier attrs> or </identifier> -
htmlAttrs
protected void htmlAttrs()Deprecated.Read a series of HTML attributes, terminated by > . Each attribute is of the form identifier[=value] . "value" may be unquoted, single-quoted, or double-quoted. -
attrValueChar
Deprecated. -
isIdentifierStart
protected boolean isIdentifierStart(char ch) Deprecated. -
readIdentifier
Deprecated. -
readAttributeName
Deprecated. -
readTagName
Deprecated. -
isJavaIdentifierStart
protected boolean isJavaIdentifierStart(char ch) Deprecated. -
readJavaIdentifier
Deprecated. -
isDecimalDigit
protected boolean isDecimalDigit(char ch) Deprecated. -
isHexDigit
protected boolean isHexDigit(char ch) Deprecated. -
isUnquotedAttrValueTerminator
protected boolean isUnquotedAttrValueTerminator(char ch) Deprecated. -
isWhitespace
protected boolean isWhitespace(char ch) Deprecated. -
skipWhitespace
protected void skipWhitespace()Deprecated. -
newString
Deprecated.- Parameters:
start
- position of first character of stringend
- position of character beyond last character to be included
-
initTagParsers
private void initTagParsers()Deprecated.- See Also:
-
initEventAttrs
private void initEventAttrs()Deprecated. -
initURIAttrs
private void initURIAttrs()Deprecated.
-