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)
TagVisitorscript in interface TagVisitorscript in class TagAdapterpublic 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 TagVisitortag in class TagAdapterpublic 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 TagVisitorcondComment in class TagAdapterpublic void end()
TagVisitorend in interface TagVisitorend in class TagAdapterpublic char[] postProcess(char[] content)
RESOURCE_ONLY strategy.Copyright © 2003-present Jodd Team