public class Matcher extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
Matcher.Mapper
Mapper represents a local CSS for a Node that is used to match the Node's
children.
|
| Constructor and Description |
|---|
Matcher(TreeResolver tr,
AttributeResolver ar,
StylesheetFactory factory,
List<Stylesheet> stylesheets,
String medium) |
| Modifier and Type | Method and Description |
|---|---|
CascadedStyle |
getCascadedStyle(Element e,
boolean restyle) |
List<FontFaceRule> |
getFontFaceRules() |
PageInfo |
getPageCascadedStyle(String pageName,
String pseudoPage) |
CascadedStyle |
getPECascadedStyle(Element e,
String pseudoElement)
May return null.
|
boolean |
isActiveStyled(Node e) |
boolean |
isFocusStyled(Node e) |
boolean |
isHoverStyled(Node e) |
boolean |
isVisitedStyled(Node e) |
protected Matcher.Mapper |
matchElement(Node e) |
void |
removeStyle(Element e) |
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
public void removeStyle(Element e)
public CascadedStyle getCascadedStyle(Element e, boolean restyle)
public CascadedStyle getPECascadedStyle(Element e, String pseudoElement)
public List<FontFaceRule> getFontFaceRules()
public boolean isVisitedStyled(Node e)
public boolean isHoverStyled(Node e)
public boolean isActiveStyled(Node e)
public boolean isFocusStyled(Node e)
protected Matcher.Mapper matchElement(Node e)
Copyright © 2023. All rights reserved.