|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.lagarto.EmptyTagVisitor
jodd.decora.parser.DecoratorTagVisitor
public class DecoratorTagVisitor
Visitor that detect Decora tags in the decorator. Therefore, it determines decora tags position inside decorator file.
If decorator content is static, array of decora tags can be cached
adn duplicated to
skip parsing decorator again.
| Field Summary | |
|---|---|
protected int |
closingTagDeepLevel
|
protected java.lang.String |
closingTagName
|
protected java.lang.String |
decoraIdName
|
protected int |
decoraTagDefaultValueEnd
|
protected int |
decoraTagDefaultValueStart
|
protected int |
decoraTagEnd
|
protected java.lang.String |
decoraTagName
|
protected java.util.LinkedList<DecoraTag> |
decoraTags
|
protected int |
decoraTagStart
|
| Constructor Summary | |
|---|---|
DecoratorTagVisitor()
|
|
| Method Summary | |
|---|---|
protected void |
checkNestedDecoraTags()
Check if decora tag is currently defined and throws an exception on nested tags. |
protected void |
defineDecoraTag()
Defines decora tag position inside decorator content. |
DecoraTag[] |
getDecoraTags()
Returns an array of founded Decora tags. |
protected void |
onDecoraTag(Tag tag)
Handle decora tags. |
protected void |
onIdAttrEnd(Tag tag)
|
protected void |
onIdAttrStart(Tag tag)
Handle open and empty ID attribute tags. |
void |
tag(Tag tag)
Invoked on tag (open, close or empty). |
| Methods inherited from class jodd.lagarto.EmptyTagVisitor |
|---|
cdata, comment, condComment, doctype, end, error, script, start, style, text, xml, xmp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.LinkedList<DecoraTag> decoraTags
protected java.lang.String decoraTagName
protected java.lang.String decoraIdName
protected int decoraTagStart
protected int decoraTagEnd
protected int decoraTagDefaultValueStart
protected int decoraTagDefaultValueEnd
protected java.lang.String closingTagName
protected int closingTagDeepLevel
| Constructor Detail |
|---|
public DecoratorTagVisitor()
| Method Detail |
|---|
public DecoraTag[] getDecoraTags()
public 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 EmptyTagVisitorprotected void onDecoraTag(Tag tag)
protected void onIdAttrStart(Tag tag)
protected void onIdAttrEnd(Tag tag)
protected void defineDecoraTag()
protected void checkNestedDecoraTags()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||