Class SimpleStyleRuleMatcher
- java.lang.Object
-
- org.pentaho.reporting.libraries.css.resolver.impl.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
-
-
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.CSSStyleRule[]
getMatchingRules(LayoutElement element)
CSSPageRule[]
getPageRule(CSSValue pageName, PseudoPage[] pseudoPages)
void
initialize(DocumentContext layoutProcess)
boolean
isMatchingPseudoElement(LayoutElement element, String pseudo)
-
-
-
Method Detail
-
initialize
public void initialize(DocumentContext layoutProcess)
- Specified by:
initialize
in interfaceStyleRuleMatcher
-
isMatchingPseudoElement
public boolean isMatchingPseudoElement(LayoutElement 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 CSSStyleRule[] getMatchingRules(LayoutElement element)
- Specified by:
getMatchingRules
in interfaceStyleRuleMatcher
-
getPageRule
public CSSPageRule[] getPageRule(CSSValue pageName, PseudoPage[] pseudoPages)
- Specified by:
getPageRule
in interfaceStyleRuleMatcher
-
-