public class DirectAnalyzer extends Analyzer
Analyzer.Holder, Analyzer.HolderItem, Analyzer.HolderSelectorrules, UNIVERSAL_HOLDER| Constructor and Description |
|---|
DirectAnalyzer(List<StyleSheet> sheets)
Creates the analyzer for multiple style sheets.
|
DirectAnalyzer(StyleSheet sheet)
Creates the analyzer for a single style sheet.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Declaration> |
getDeclarationsForElement(Element e,
Selector.PseudoDeclaration pseudo,
Analyzer.Holder holder) |
NodeData |
getElementStyle(Element el,
Selector.PseudoDeclaration pseudo,
String media)
Computes the style of an element with an eventual pseudo element for the given media.
|
protected boolean |
matchSelector(CombinedSelector sel,
Element e) |
assignDeclarationsToElement, assingDeclarationsToDOM, evaluateDOM, matchSelectorpublic DirectAnalyzer(StyleSheet sheet)
sheet - The stylesheet that will be used as the source of rules.public DirectAnalyzer(List<StyleSheet> sheets)
sheets - A list of stylesheets that will be used as the source of rules.public NodeData getElementStyle(Element el, Selector.PseudoDeclaration pseudo, String media)
el - The DOM element.pseudo - A pseudo element that should be used for style computation or null if no pseudo element should be used (e.g. :after).media - Used media name (e.g. "screen" or "all")protected List<Declaration> getDeclarationsForElement(Element e, Selector.PseudoDeclaration pseudo, Analyzer.Holder holder)
protected boolean matchSelector(CombinedSelector sel, Element e)
Copyright © 2014. All rights reserved.