Class CssTree

java.lang.Object
com.google.common.css.compiler.ast.CssTree

public class CssTree extends Object
A mutable abstract syntax tree that corresponds to a CSS input file.
  • Constructor Details

    • CssTree

      public CssTree(SourceCode sourceCode, CssRootNode root)
      Constructor of a tree.
      Parameters:
      sourceCode - the source location associated with the tree (probably the start of the file)
      root - the root node of the tree
    • CssTree

      public CssTree(@Nullable SourceCode sourceCode)
      Constructor of a tree.
      Parameters:
      sourceCode - the source location associated with the tree (probably the start of the file). Can be null.
    • CssTree

      public CssTree(CssTree tree)
      Copy constructor. This also copies the ruleset nodes to remove. The collection of ruleset node to remove can be cleared if it is not desired without affecting the original tree.
      Parameters:
      tree - the tree to copy. Must not be null.
  • Method Details