Class AtRule


public class AtRule extends Rule
An "at-rule" consists of an "at-keyword", a list of header tokens and a list of body tokens.
Author:
Werner Randelshofer
  • Constructor Details

    • AtRule

      public AtRule(@Nullable SourceLocator sourceLocator, String atKeyword, List<? extends CssToken> header, List<? extends CssToken> body)
      Creates a new instance.
      Parameters:
      sourceLocator -
      atKeyword - the "at-keyword"
      header - the list of header tokens
      body - the list of body tokens
  • Method Details

    • toString

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

      public String getAtKeyword()
      Gets the "at-keyword".
      Returns:
      the "at-keyword".
    • getHeader

      public ReadOnlyList<CssToken> getHeader()
      Gets the list of header tokens.
      Returns:
      the header tokens
    • getBody

      public ReadOnlyList<CssToken> getBody()
      Gets the list of body tokens.
      Returns:
      the body tokens