jodd.decora.parser
Class PageRegionExtractor

java.lang.Object
  extended by jodd.lagarto.EmptyTagVisitor
      extended by jodd.decora.parser.PageRegionExtractor
All Implemented Interfaces:
TagVisitor

public class PageRegionExtractor
extends EmptyTagVisitor

Region extractor parses page and resolves regions for each decora tag.


Field Summary
protected  int currentRegions
          Number of currently defined regions.
protected  DecoraTag[] decoraTags
           
 
Constructor Summary
PageRegionExtractor(DecoraTag[] decoraTags)
           
 
Method Summary
 void end()
          Invoked at the end, after all content is visited.
 void tag(Tag tag)
          Invoked on tag (open, close or empty).
 
Methods inherited from class jodd.lagarto.EmptyTagVisitor
cdata, comment, condComment, doctype, 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

decoraTags

protected final DecoraTag[] decoraTags

currentRegions

protected int currentRegions
Number of currently defined regions.

Constructor Detail

PageRegionExtractor

public PageRegionExtractor(DecoraTag[] decoraTags)
Method Detail

tag

public void tag(Tag tag)
Description copied from interface: TagVisitor
Invoked on tag (open, close or empty).

Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!

Specified by:
tag in interface TagVisitor
Overrides:
tag in class EmptyTagVisitor

end

public void end()
Description copied from interface: TagVisitor
Invoked at the end, after all content is visited.

Specified by:
end in interface TagVisitor
Overrides:
end in class EmptyTagVisitor


Copyright © 2003-2011 Jodd Team