public class SimplePreparator extends Object implements Preparator
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SimplePreparator(PriorityStrategy ps,
Element e,
boolean inlinePriority) |
| Modifier and Type | Method and Description |
|---|---|
RuleBlock.Priority |
markPriority()
Marks priority
|
RuleBlock<?> |
prepareInlineRuleSet(List<Declaration> dlist,
List<Selector.PseudoPage> 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
|
RuleMargin |
prepareRuleMargin(String area,
List<Declaration> decl)
Creates RuleMargin, block of declarations associated with specific area in the page margin.
|
RuleBlock<?> |
prepareRuleMedia(RuleBlock.Priority mark,
List<RuleSet> rules,
List<String> media)
Creates RuleMedia, block of rules with assigned medias.
|
RuleBlock<?> |
prepareRulePage(List<Declaration> declarations,
List<RuleMargin> marginRules,
String name,
String pseudo)
Creates RulePage, block of rules associated with specific page
|
RuleBlock<?> |
prepareRuleSet(List<CombinedSelector> cslist,
List<Declaration> dlist,
boolean wrap,
List<String> media)
Creates base block of rules.
|
RuleBlock<?> |
prepareRuleViewport(List<Declaration> decl)
Creates RuleViewport, block of rules associated with the viewport.
|
public SimplePreparator(PriorityStrategy ps, Element e, boolean inlinePriority)
public RuleBlock<?> prepareRuleSet(List<CombinedSelector> cslist, List<Declaration> dlist, boolean wrap, List<String> 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(RuleBlock.Priority mark, List<RuleSet> rules, List<String> media)
PreparatorprepareRuleMedia in interface Preparatormark - Priority markrules - Rules encapsulated by this RuleMediamedia - List of media assigned to rulepublic RuleBlock<?> prepareRulePage(List<Declaration> declarations, List<RuleMargin> marginRules, String name, String 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.Priority markPriority()
PreparatormarkPriority in interface Preparatorpublic RuleBlock<?> prepareInlineRuleSet(List<Declaration> dlist, List<Selector.PseudoPage> pseudos)
PreparatorprepareInlineRuleSet in interface Preparatordlist - List of Declarationpseudos - List of pseudo page identifiersCopyright © 2014. All rights reserved.