public class PageRegionExtractor extends EmptyTagVisitor
Modifier and Type | Class and Description |
---|---|
static class |
PageRegionExtractor.RegionMarker
Region marker for founded, and not yet closed regions.
|
Modifier and Type | Field and Description |
---|---|
protected DecoraTag[] |
decoraTags |
protected java.util.LinkedList<PageRegionExtractor.RegionMarker> |
regionMarkers
Decora tags of current regions.
|
Constructor and Description |
---|
PageRegionExtractor(DecoraTag[] decoraTags) |
Modifier and Type | Method and Description |
---|---|
void |
end()
Invoked at the end, after all content is visited.
|
void |
tag(Tag tag)
Invoked on
tag (open, close or empty). |
cdata, comment, condComment, doctype, error, script, start, text, xml
protected final DecoraTag[] decoraTags
protected java.util.LinkedList<PageRegionExtractor.RegionMarker> regionMarkers
public PageRegionExtractor(DecoraTag[] decoraTags)
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 EmptyTagVisitor
public void end()
TagVisitor
end
in interface TagVisitor
end
in class EmptyTagVisitor
Copyright © 2003-present Jodd Team