public class HtmlStaplerTagAdapter extends TagAdapter
Modifier and Type | Field and Description |
---|---|
protected HtmlStaplerBundlesManager |
bundlesManager |
protected BundleAction |
cssBundleAction |
protected boolean |
insideConditionalComment |
protected BundleAction |
jsBundleAction |
target
Constructor and Description |
---|
HtmlStaplerTagAdapter(HtmlStaplerBundlesManager bundlesManager,
java.lang.String servletPath,
TagVisitor target) |
Modifier and Type | Method and Description |
---|---|
void |
condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
boolean isHiddenEndTag)
Invoked on IE conditional comment.
|
void |
end()
Invoked at the end, after all content is visited.
|
char[] |
postProcess(char[] content)
Post process final content.
|
void |
script(Tag tag,
java.lang.CharSequence body)
Invoked on script tag.
|
void |
tag(Tag tag)
Invoked on
tag (open, close or empty). |
protected final HtmlStaplerBundlesManager bundlesManager
protected final BundleAction jsBundleAction
protected final BundleAction cssBundleAction
protected boolean insideConditionalComment
public HtmlStaplerTagAdapter(HtmlStaplerBundlesManager bundlesManager, java.lang.String servletPath, TagVisitor target)
public void script(Tag tag, java.lang.CharSequence body)
TagVisitor
script
in interface TagVisitor
script
in class TagAdapter
public void tag(Tag tag)
TagVisitor
tag
(open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
tag
in interface TagVisitor
tag
in class TagAdapter
public void condComment(java.lang.CharSequence expression, boolean isStartingTag, boolean isHidden, boolean isHiddenEndTag)
TagVisitor
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]>
condComment
in interface TagVisitor
condComment
in class TagAdapter
public void end()
TagVisitor
end
in interface TagVisitor
end
in class TagAdapter
public char[] postProcess(char[] content)
RESOURCE_ONLY
strategy.Copyright © 2003-present Jodd Team