Class SimpleStyleRuleMatcher
java.lang.Object
org.pentaho.reporting.libraries.css.resolver.impl.SimpleStyleRuleMatcher
- All Implemented Interfaces:
StyleRuleMatcher
A stateless implementation of the style rule matching. This implementation is stateless within the current layout
process.
- Author:
- Thomas Morgner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates an independent copy of this style rule matcher.getMatchingRules
(LayoutElement element) getPageRule
(CSSValue pageName, PseudoPage[] pseudoPages) void
initialize
(DocumentContext layoutProcess) boolean
isMatchingPseudoElement
(LayoutElement element, String pseudo)
-
Constructor Details
-
SimpleStyleRuleMatcher
public SimpleStyleRuleMatcher()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceStyleRuleMatcher
-
isMatchingPseudoElement
- Specified by:
isMatchingPseudoElement
in interfaceStyleRuleMatcher
-
deriveInstance
Creates an independent copy of this style rule matcher.- Specified by:
deriveInstance
in interfaceStyleRuleMatcher
- Returns:
- this instance, as this implementation is stateless
-
getMatchingRules
- Specified by:
getMatchingRules
in interfaceStyleRuleMatcher
-
getPageRule
- Specified by:
getPageRule
in interfaceStyleRuleMatcher
-