Class CssTree
java.lang.Object
com.google.common.css.compiler.ast.CssTree
A mutable abstract syntax tree that corresponds to a CSS input file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor.CssTree(SourceCode sourceCode) Constructor of a tree.CssTree(SourceCode sourceCode, CssRootNode root) Constructor of a tree. -
Method Summary
-
Constructor Details
-
CssTree
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
Constructor of a tree.- Parameters:
sourceCode- the source location associated with the tree (probably the start of the file). Can benull.
-
CssTree
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 benull.
-
-
Method Details
-
getRoot
-
getSourceCode
-
getRulesetNodesToRemove
-
resetRulesetNodesToRemove
public void resetRulesetNodesToRemove() -
getMutatingVisitController
-
getVisitController
-