Interface StyleRuleMatcher
-
- All Known Implementing Classes:
SimpleStyleRuleMatcher
public interface StyleRuleMatcher
A (possibly stateful) style matcher. This class is responsible for checking which style rule applies to the given document. It is guaranteed, that the matcher receives the elements in the order in which they appear in the document. Although the style rule matcher does not receive explicit element-opened and element-closed events, these events can be derived from the layout element and its relation to the parent (and possibly previously received element and its parent).- Author:
- Thomas Morgner
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StyleRuleMatcher.MatcherResult
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StyleRuleMatcher
deriveInstance()
Creates an independent copy of this style rule matcher.StyleRuleMatcher.MatcherResult[]
getMatchingRules(ReportElement element)
void
initialize(DocumentContext layoutProcess)
boolean
isMatchingPseudoElement(ReportElement element, String pseudo)
-
-
-
Method Detail
-
deriveInstance
StyleRuleMatcher deriveInstance()
Creates an independent copy of this style rule matcher.- Returns:
-
getMatchingRules
StyleRuleMatcher.MatcherResult[] getMatchingRules(ReportElement element)
-
isMatchingPseudoElement
boolean isMatchingPseudoElement(ReportElement element, String pseudo)
-
initialize
void initialize(DocumentContext layoutProcess)
-
-