public class DirectAnalyzer extends Analyzer
Analyzer.Holder, Analyzer.HolderItem, Analyzer.HolderSelector, Analyzer.OrderedRulecurrentOrder, rules, sheets| 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 |
|---|---|
NodeData |
getElementStyle(Element el,
Selector.PseudoDeclaration pseudo,
MediaSpec media)
Computes the style of an element with an eventual pseudo element for the given media.
|
NodeData |
getElementStyle(Element el,
Selector.PseudoDeclaration pseudo,
String media)
Computes the style of an element with an eventual pseudo element for the given media.
|
assignDeclarationsToElement, assingDeclarationsToDOM, classifyAllSheets, elementSelectorMatches, evaluateDOM, evaluateDOM, getElementMatcher, getMatchCondition, matchSelector, registerElementMatcher, registerMatchConditionpublic 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, MediaSpec 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 specification.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")Copyright © 2018. All rights reserved.