Class CssTree


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

      • 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.