Package com.sun.java.help.impl
Class Parser
- java.lang.Object
-
- com.sun.java.help.impl.DocumentParser
-
- com.sun.java.help.impl.Parser
-
public class Parser extends DocumentParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Parser.ParserMulticaster
-
Field Summary
Fields Modifier and Type Field Description protected ParserListener
listenerList
-
Fields inherited from class com.sun.java.help.impl.DocumentParser
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParserListener(ParserListener l)
protected void
comment(java.lang.String s)
This method inserts a comment It should be overridden by the subclassprotected void
doctype(java.lang.String root, java.lang.String publicId, java.lang.String systemId)
This method emits a doctype.protected java.lang.String
documentAttribute(java.lang.String name)
This method looks up a &xxx; sequence in the document properties (this is used for templates).protected void
errorString(java.lang.String s)
This method inserts a parse error string into the document It should be overridden by the subclassprotected void
flush(char[] buf, int offset, int length)
This method creates a block of text for a document.protected void
pi(java.lang.String target, java.lang.String data)
This method emits a pi It should be overridden by the subclassvoid
removeParserListener(ParserListener l)
protected void
tag(java.lang.String name, TagProperties atts, boolean endTag, boolean emptyTag)
This method emits a tag It should be overridden by the subclass-
Methods inherited from class com.sun.java.help.impl.DocumentParser
callFlush, commentEOFError, eofError, findCloseAngleForComment, generateError, getDocumentSource, handleCommentOrDoctype, initEntities, parse, parseEscape, parseTag, parseText, readChar, scanIdentifier, scanQuotedString, setInput, setInput, setShouldCacheSource, setXmlEntities, skipToCloseAngle, skipWhite
-
-
-
-
Field Detail
-
listenerList
protected ParserListener listenerList
-
-
Method Detail
-
tag
protected void tag(java.lang.String name, TagProperties atts, boolean endTag, boolean emptyTag)
Description copied from class:DocumentParser
This method emits a tag It should be overridden by the subclass- Specified by:
tag
in classDocumentParser
-
pi
protected void pi(java.lang.String target, java.lang.String data)
Description copied from class:DocumentParser
This method emits a pi It should be overridden by the subclass- Specified by:
pi
in classDocumentParser
-
doctype
protected void doctype(java.lang.String root, java.lang.String publicId, java.lang.String systemId)
Description copied from class:DocumentParser
This method emits a doctype. Internal subset information is discarded It should be overridden by the subclass- Specified by:
doctype
in classDocumentParser
-
flush
protected void flush(char[] buf, int offset, int length)
Description copied from class:DocumentParser
This method creates a block of text for a document. It should be overridden by the subclass- Specified by:
flush
in classDocumentParser
-
comment
protected void comment(java.lang.String s)
Description copied from class:DocumentParser
This method inserts a comment It should be overridden by the subclass- Specified by:
comment
in classDocumentParser
-
errorString
protected void errorString(java.lang.String s)
Description copied from class:DocumentParser
This method inserts a parse error string into the document It should be overridden by the subclass- Specified by:
errorString
in classDocumentParser
-
documentAttribute
protected java.lang.String documentAttribute(java.lang.String name)
Description copied from class:DocumentParser
This method looks up a &xxx; sequence in the document properties (this is used for templates). A return of null means the proerty is undefined. It should be overridden by the subclass- Specified by:
documentAttribute
in classDocumentParser
-
addParserListener
public void addParserListener(ParserListener l)
-
removeParserListener
public void removeParserListener(ParserListener l)
-
-