public class CssNestedAtRule extends CssAtRule
Modifier and Type | Field and Description |
---|---|
protected List<CssStatement> |
body
The body.
|
Constructor and Description |
---|
CssNestedAtRule(String ruleName, String ruleParameters)
Creates a CssNestedAtRule instance with an empty body.
|
Modifier and Type | Method and Description |
---|---|
void |
addBodyCssDeclarations(List<CssDeclaration> cssDeclarations)
Adds the body CSS declarations.
|
void |
addStatementsToBody(Collection<CssStatement> statements)
Adds CSS statements to the body.
|
void |
addStatementToBody(CssStatement statement)
Adds a CSS statement to body.
|
List<CssRuleSet> |
getCssRuleSets(INode node, MediaDeviceDescription deviceDescription)
Gets a list of CssRuleSet objects.
|
String |
getRuleParameters() |
List<CssStatement> |
getStatements()
Gets the list of CSS statements.
|
String |
toString() |
getRuleName
protected List<CssStatement> body
public CssNestedAtRule(String ruleName, String ruleParameters)
CssNestedAtRule
instance with an empty body.
ruleName
- the rule name
ruleParameters
- the rule parameters
public void addStatementToBody(CssStatement statement)
statement
- a CSS statement
public void addStatementsToBody(Collection<CssStatement> statements)
statements
- a list of CSS statements
public void addBodyCssDeclarations(List<CssDeclaration> cssDeclarations)
cssDeclarations
- a list of CSS declarations
public List<CssRuleSet> getCssRuleSets(INode node, MediaDeviceDescription deviceDescription)
CssStatement
CssRuleSet
objects.
getCssRuleSets
in class CssStatement
node
- a node
deviceDescription
- a media device description
public List<CssStatement> getStatements()
public String getRuleParameters()
Copyright © 1998–2019 iText Group NV. All rights reserved.