Package org.xhtmlrenderer.css.newmatch
Class Matcher
- java.lang.Object
-
- org.xhtmlrenderer.css.newmatch.Matcher
-
public class Matcher extends Object
- Author:
- Torbjoern Gannholm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMatcher.MapperMapper represents a local CSS for a Node that is used to match the Node's children.
-
Constructor Summary
Constructors Constructor Description Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CascadedStylegetCascadedStyle(Element e, boolean restyle)List<FontFaceRule>getFontFaceRules()PageInfogetPageCascadedStyle(String pageName, String pseudoPage)CascadedStylegetPECascadedStyle(Element e, String pseudoElement)May return null.booleanisActiveStyled(Node e)booleanisFocusStyled(Node e)booleanisHoverStyled(Node e)booleanisVisitedStyled(Node e)protected Matcher.MappermatchElement(Node e)voidremoveStyle(Element e)
-
-
-
Constructor Detail
-
Matcher
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
-
Method Detail
-
removeStyle
public void removeStyle(Element e)
-
getCascadedStyle
public CascadedStyle getCascadedStyle(Element e, boolean restyle)
-
getPECascadedStyle
public CascadedStyle getPECascadedStyle(Element e, String pseudoElement)
May return null. We assume that restyle has already been done by a getCascadedStyle if necessary.
-
getFontFaceRules
public List<FontFaceRule> getFontFaceRules()
-
isVisitedStyled
public boolean isVisitedStyled(Node e)
-
isHoverStyled
public boolean isHoverStyled(Node e)
-
isActiveStyled
public boolean isActiveStyled(Node e)
-
isFocusStyled
public boolean isFocusStyled(Node e)
-
matchElement
protected Matcher.Mapper matchElement(Node e)
-
-