|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.AbstractNode
org.htmlparser.lexer.nodes.TagNode
org.htmlparser.tags.Tag
Tag represents a generic tag. If no scanner is registered for a given tag name, this is what you get. This is also the base class for all tags created by the parser (not the lexer which has nodes).
| Field Summary | |
protected static TagScanner |
mDefaultScanner
The default scanner for non-composite tags. |
| Fields inherited from class org.htmlparser.lexer.nodes.TagNode |
breakTags, mAttributes |
| Fields inherited from class org.htmlparser.AbstractNode |
children, mPage, nodeBegin, nodeEnd, parent |
| Constructor Summary | |
Tag()
|
|
Tag(Page page,
int start,
int end,
Vector attributes)
|
|
Tag(TagNode node,
TagScanner scanner)
|
|
| Method Summary | |
void |
accept(NodeVisitor visitor)
Default tag visiting code. |
void |
accept(Object visitor)
Handle a visitor. |
Object |
clone()
|
String[] |
getEnders()
Return the set of tag names that cause this tag to finish. |
String[] |
getEndTagEnders()
Return the set of end tag names that cause this tag to finish. |
String[] |
getIds()
Return the set of names handled by this tag. |
TagScanner |
getThisScanner()
Return the scanner associated with this tag. |
void |
setThisScanner(TagScanner scanner)
|
| Methods inherited from class org.htmlparser.lexer.nodes.TagNode |
breaksFlow, getAttribute, getAttributeEx, getAttributes, getAttributesEx, getEndingLineNumber, getParameter, getParsed, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getText, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, toHtml, toPlainTextString, toString |
| Methods inherited from class org.htmlparser.AbstractNode |
collectInto, doSemanticAction, elementBegin, elementEnd, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHTML |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final TagScanner mDefaultScanner
| Constructor Detail |
public Tag()
public Tag(TagNode node,
TagScanner scanner)
public Tag(Page page,
int start,
int end,
Vector attributes)
| Method Detail |
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionpublic String[] getIds()
public String[] getEnders()
public String[] getEndTagEnders()
public TagScanner getThisScanner()
public void setThisScanner(TagScanner scanner)
public void accept(Object visitor)
visitTag() and
visitEndTag().
accept in interface Nodeaccept in class TagNodevisitor - The NodeVisitor object
(a cast is performed without checking).public void accept(NodeVisitor visitor)
isEndTag(), calls either visitTag() or
visitEndTag().
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||