Class SimpleStyleRuleMatcher
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.style.css.SimpleStyleRuleMatcher
-
- All Implemented Interfaces:
StyleRuleMatcher
public class SimpleStyleRuleMatcher extends Object implements StyleRuleMatcher
A stateless implementation of the style rule matching. This implementation is stateless within the current layout process.- Author:
- Thomas Morgner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.reporting.engine.classic.core.style.css.StyleRuleMatcher
StyleRuleMatcher.MatcherResult
-
-
Constructor Summary
Constructors Constructor Description SimpleStyleRuleMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleRuleMatcher
deriveInstance()
Creates an independent copy of this style rule matcher.StyleRuleMatcher.MatcherResult[]
getMatchingRules(ReportElement element)
Returns all matching rules for the given element.void
initialize(DocumentContext layoutProcess)
boolean
isMatchingPseudoElement(ReportElement element, String pseudo)
-
-
-
Method Detail
-
initialize
public void initialize(DocumentContext layoutProcess)
- Specified by:
initialize
in interfaceStyleRuleMatcher
-
isMatchingPseudoElement
public boolean isMatchingPseudoElement(ReportElement element, String pseudo)
- Specified by:
isMatchingPseudoElement
in interfaceStyleRuleMatcher
-
deriveInstance
public StyleRuleMatcher deriveInstance()
Creates an independent copy of this style rule matcher.- Specified by:
deriveInstance
in interfaceStyleRuleMatcher
- Returns:
- this instance, as this implementation is stateless
-
getMatchingRules
public StyleRuleMatcher.MatcherResult[] getMatchingRules(ReportElement element)
Returns all matching rules for the given element. Each matched rule must carry the weight of the matching selector.- Specified by:
getMatchingRules
in interfaceStyleRuleMatcher
- Parameters:
element
-- Returns:
-
-