public interface TagVisitor
Modifier and Type | Method and Description |
---|---|
void |
cdata(java.lang.CharSequence cdata)
Invoked on CDATA sequence.
|
void |
comment(java.lang.CharSequence comment)
Invoked on comment.
|
void |
condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
boolean isHiddenEndTag)
Invoked on IE conditional comment.
|
void |
doctype(Doctype doctype)
Invoked on DOCTYPE directive.
|
void |
end()
Invoked at the end, after all content is visited.
|
void |
error(java.lang.String message)
Warn about parsing error.
|
void |
script(Tag tag,
java.lang.CharSequence body)
Invoked on script tag.
|
void |
start()
Invoked on very beginning of the visiting.
|
void |
tag(Tag tag)
Invoked on
tag (open, close or empty). |
void |
text(java.lang.CharSequence text)
Invoked on text i.e. anything other than a tag.
|
void |
xml(java.lang.CharSequence version,
java.lang.CharSequence encoding,
java.lang.CharSequence standalone)
Invoked on xml declaration.
|
void start()
void end()
void doctype(Doctype doctype)
void tag(Tag tag)
tag
(open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
void script(Tag tag, java.lang.CharSequence body)
void comment(java.lang.CharSequence comment)
void text(java.lang.CharSequence text)
void condComment(java.lang.CharSequence expression, boolean isStartingTag, boolean isHidden, boolean isHiddenEndTag)
The following conditional comments are recognized:
<!--[if IE 6]>one<![endif]-->
<!--[if IE 6]><!-->two<!---<![endif]-->
<!--[if IE 6]>three<!--xx<![endif]-->
<![if IE 6]>four<![endif]>
void xml(java.lang.CharSequence version, java.lang.CharSequence encoding, java.lang.CharSequence standalone)
void cdata(java.lang.CharSequence cdata)
void error(java.lang.String message)
message
- parsing error messageCopyright © 2003-present Jodd Team