public class EmptyTagVisitor extends java.lang.Object implements TagVisitor
| Constructor and Description |
|---|
EmptyTagVisitor() |
| 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,
java.lang.CharSequence comment)
Invoked on IE conditional comment.
|
void |
doctype(java.lang.String name,
java.lang.String publicId,
java.lang.String baseUri)
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(LagartoParserContext parserContext)
Invoked on very beginning of the visiting.
|
void |
style(Tag tag,
java.lang.CharSequence body)
Invoked on style tag.
|
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(Tag tag)
Invoked on xml declaration.
|
void |
xmp(Tag tag,
java.lang.CharSequence body)
Invoked on xmp tag.
|
public void start(LagartoParserContext parserContext)
TagVisitorparser context that
gives some information during the parsing process.start in interface TagVisitorpublic void end()
TagVisitorend in interface TagVisitorpublic void tag(Tag tag)
TagVisitortag (open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
tag in interface TagVisitorpublic void xmp(Tag tag, java.lang.CharSequence body)
TagVisitorxmp in interface TagVisitorpublic void script(Tag tag, java.lang.CharSequence body)
TagVisitorscript in interface TagVisitorpublic void style(Tag tag, java.lang.CharSequence body)
TagVisitorstyle in interface TagVisitorpublic void comment(java.lang.CharSequence comment)
TagVisitorcomment in interface TagVisitorpublic void text(java.lang.CharSequence text)
TagVisitortext in interface TagVisitorpublic void cdata(java.lang.CharSequence cdata)
TagVisitorcdata in interface TagVisitorpublic void xml(Tag tag)
TagVisitorxml in interface TagVisitorpublic void doctype(java.lang.String name,
java.lang.String publicId,
java.lang.String baseUri)
TagVisitorpublicId is null, it is a SYSTEM
directive, otherwise it is PUBLIC.doctype in interface TagVisitorpublic void condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
java.lang.CharSequence comment)
TagVisitorexpression if unmodified expression.
comment is optional additional comment and may be null.condComment in interface TagVisitorpublic void error(java.lang.String message)
TagVisitorerror in interface TagVisitormessage - parsing error messageCopyright © 2003-2013 Jodd Team