Class Matcher
java.lang.Object
org.openpdf.css.newmatch.Matcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classMapper represents a local CSS for a Node that is used to match the Node's children. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttributeResolverprivate final List<FontFaceRule> private final Map<Node, Matcher.Mapper> private final StylesheetFactoryprivate final TreeResolverprivate final Matcher.Mapper -
Constructor Summary
ConstructorsConstructorDescriptionMatcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAllStylesheets(List<Stylesheet> stylesheets, Map<String, Selector> sorter, String medium) private Matcher.MappercreateDocumentMapper(List<Stylesheet> stylesheets, String medium) getCascadedStyle(Element e, boolean restyle) private Rulesetprivate Matcher.Mapperprivate Ruleset@NonNull PageInfogetPageCascadedStyle(@Nullable String pageName, String pseudoPage) @Nullable CascadedStylegetPECascadedStyle(Element e, String pseudoElement) May return null.booleanprivate voidlink(Node e, Matcher.Mapper m) private Matcher.MappermatchElement(Node e)
-
Field Details
-
docMapper
-
_attRes
-
_treeRes
-
_styleFactory
-
_map
-
_hoverElements
-
_pageRules
-
_fontFaceRules
-
-
Constructor Details
-
Matcher
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
-
Method Details
-
getCascadedStyle
-
getPECascadedStyle
May return null. We assume that restyle has already been done by a getCascadedStyle if necessary. -
getPageCascadedStyle
-
getFontFaceRules
-
isHoverStyled
-
matchElement
-
createDocumentMapper
-
addAllStylesheets
-
link
-
getMapper
-
getElementStyle
-
getNonCssStyle
-