Class CssNestedAtRule

Direct Known Subclasses:
CssFontFaceRule, CssMarginRule, CssMediaRule, CssPageRule

public class CssNestedAtRule extends CssAtRule
Class to store a nested CSS at-rule Nested at-rules are a subset of nested statements, which can be used as a statement of a style sheet as well as inside of conditional group rules.
  • Field Details

  • Constructor Details

    • CssNestedAtRule

      public CssNestedAtRule (String ruleName, String ruleParameters)
      Creates a CssNestedAtRule instance with an empty body.
      Parameters:
      ruleName - the rule name
      ruleParameters - the rule parameters
  • Method Details

    • addStatementToBody

      public void addStatementToBody (CssStatement statement)
      Adds a CSS statement to body.
      Parameters:
      statement - a CSS statement
    • addStatementsToBody

      public void addStatementsToBody (Collection<CssStatement> statements)
      Adds CSS statements to the body.
      Parameters:
      statements - a list of CSS statements
    • addBodyCssDeclarations

      public void addBodyCssDeclarations (List<CssDeclaration> cssDeclarations)
      Adds the body CSS declarations.
      Parameters:
      cssDeclarations - a list of CSS declarations
    • getCssRuleSets

      public List<CssRuleSet> getCssRuleSets (INode node, MediaDeviceDescription deviceDescription)
      Description copied from class: CssStatement
      Gets a list of CssRuleSet objects.
      Overrides:
      getCssRuleSets in class CssStatement
      Parameters:
      node - a node
      deviceDescription - a media device description
      Returns:
      the css rule sets
    • getStatements

      public List<CssStatement> getStatements()
      Gets the list of CSS statements.
      Returns:
      the list of CSS statements
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRuleParameters

      public String getRuleParameters()