public class SimplePreparator extends Object implements Preparator
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SimplePreparator(Element e,
boolean inlinePriority) |
| Modifier and Type | Method and Description |
|---|---|
RuleBlock<?> |
prepareInlineRuleSet(List<Declaration> dlist,
List<Selector.SelectorPart> pseudos)
Creates block of rules as result of parsing in-line declaration.
|
RuleBlock<?> |
prepareRuleFontFace(List<Declaration> decl)
Creates RuleFontFace, block of rules associated with specific font
|
RuleBlock<?> |
prepareRuleKeyframes(List<KeyframeBlock> rules,
String name)
Creates RuleKeyframes, block of key frames with assigned name.
|
RuleMargin |
prepareRuleMargin(String area,
List<Declaration> decl)
Creates RuleMargin, block of declarations associated with specific area in the page margin.
|
RuleBlock<?> |
prepareRuleMedia(List<RuleSet> rules,
List<MediaQuery> media)
Creates RuleMedia, block of rules with assigned medias.
|
RuleBlock<?> |
prepareRulePage(List<Declaration> declarations,
List<RuleMargin> marginRules,
String name,
Selector.PseudoPage pseudo)
Creates RulePage, block of rules associated with specific page
|
RuleBlock<?> |
prepareRuleSet(List<CombinedSelector> cslist,
List<Declaration> dlist,
boolean wrap,
List<MediaQuery> media)
Creates base block of rules.
|
RuleBlock<?> |
prepareRuleViewport(List<Declaration> decl)
Creates RuleViewport, block of rules associated with the viewport.
|
public SimplePreparator(Element e, boolean inlinePriority)
public RuleBlock<?> prepareRuleSet(List<CombinedSelector> cslist, List<Declaration> dlist, boolean wrap, List<MediaQuery> media)
Preparatortrue, then
RuleSet is wrapped by media into RuleMediaprepareRuleSet in interface Preparatorcslist - List of CombinedSelector for this rule blockdlist - List of Declaration for this rule blockwrap - Wrap condition, it true, rule set is wrapped into rule mediamedia - List of medias used to wrappublic RuleBlock<?> prepareRuleMedia(List<RuleSet> rules, List<MediaQuery> media)
PreparatorprepareRuleMedia in interface Preparatorrules - Rules encapsulated by this RuleMediamedia - List of media assigned to rulepublic RuleBlock<?> prepareRulePage(List<Declaration> declarations, List<RuleMargin> marginRules, String name, Selector.PseudoPage pseudo)
PreparatorprepareRulePage in interface Preparatordeclarations - List of declarationsmarginRules - List of margin rulesname - Name of the pagepseudo - Pseudo-class of the pagepublic RuleMargin prepareRuleMargin(String area, List<Declaration> decl)
PreparatorprepareRuleMargin in interface Preparatorarea - The margin areadecl - List of declarationspublic RuleBlock<?> prepareRuleViewport(List<Declaration> decl)
PreparatorprepareRuleViewport in interface Preparatordecl - List of declarationspublic RuleBlock<?> prepareRuleFontFace(List<Declaration> decl)
PreparatorprepareRuleFontFace in interface Preparatordecl - List of declarationspublic RuleBlock<?> prepareInlineRuleSet(List<Declaration> dlist, List<Selector.SelectorPart> pseudos)
PreparatorprepareInlineRuleSet in interface Preparatordlist - List of Declarationpseudos - List of pseudo page identifierspublic RuleBlock<?> prepareRuleKeyframes(List<KeyframeBlock> rules, String name)
PreparatorprepareRuleKeyframes in interface Preparatorrules - Rules encapsulated by this RuleKeyframesname - Keyframes nameCopyright © 2019. All rights reserved.