Class JavaScriptScanner
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.JavaScriptScanner
-
@Deprecated public class JavaScriptScanner extends Object
Deprecated.Parser to detect use of JavaScript in documentation comments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JavaScriptScanner.Reporter
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected int
bp
Deprecated.protected char[]
buf
Deprecated.The input buffer, index of most recent character read, index of one past last character in buffer.protected int
buflen
Deprecated.protected char
ch
Deprecated.The current character.
-
Constructor Summary
Constructors Constructor Description JavaScriptScanner()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
attrValueChar(Void list)
Deprecated.protected void
blockContent()
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
blockTags()
Deprecated.Read a series of block tags, including their content.protected void
entity()
Deprecated.Read an HTML entity.protected void
entity(Void list)
Deprecated.protected void
html()
Deprecated.Read the start or end of an HTML tag, or an HTML comment <identifier attrs> or </identifier>protected void
htmlAttrs()
Deprecated.Read a series of HTML attributes, terminated by > .protected void
identifier()
Deprecated.Read Java identifier Matching pairs of { } are skipped; the text is terminated by the first unmatched }.protected void
inlineTag()
Deprecated.Read a single inline tag, including its content.protected void
inlineTag(Void list)
Deprecated.protected void
inlineWord()
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.void
parse(String comment, JavaScriptScanner.Reporter r)
Deprecated.protected void
quotedString()
Deprecated.Read a quoted string.protected String
readAttributeName()
Deprecated.protected String
readIdentifier()
Deprecated.protected String
readJavaIdentifier()
Deprecated.protected String
readTagName()
Deprecated.protected void
reference(boolean allowMember)
Deprecated.Read Java class name, possibly followed by member Matching pairs of < > are skipped.protected void
skipWhitespace()
Deprecated.
-
-
-
Method Detail
-
parse
public void parse(String comment, JavaScriptScanner.Reporter r)
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
protected void inlineTag(Void list)
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
.
-
reference
protected void reference(boolean allowMember) throws gw.gosudoc.com.sun.tools.javadoc.main.JavaScriptScanner.ParseException
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:
gw.gosudoc.com.sun.tools.javadoc.main.JavaScriptScanner.ParseException
-
identifier
protected void identifier() throws gw.gosudoc.com.sun.tools.javadoc.main.JavaScriptScanner.ParseException
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:
gw.gosudoc.com.sun.tools.javadoc.main.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.
-
entity
protected void entity(Void list)
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
protected void attrValueChar(Void list)
Deprecated.
-
isIdentifierStart
protected boolean isIdentifierStart(char ch)
Deprecated.
-
readIdentifier
protected String readIdentifier()
Deprecated.
-
readAttributeName
protected String readAttributeName()
Deprecated.
-
readTagName
protected String readTagName()
Deprecated.
-
isJavaIdentifierStart
protected boolean isJavaIdentifierStart(char ch)
Deprecated.
-
readJavaIdentifier
protected String 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.
-
-