Class CssTree
- java.lang.Object
-
- com.google.common.css.compiler.ast.CssTree
-
public class CssTree extends java.lang.ObjectA mutable abstract syntax tree that corresponds to a CSS input file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCssTree.RulesetNodesToRemove
-
Constructor Summary
Constructors Constructor Description CssTree(CssTree tree)Copy constructor.CssTree(SourceCode sourceCode)Constructor of a tree.CssTree(SourceCode sourceCode, CssRootNode root)Constructor of a tree.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutatingVisitControllergetMutatingVisitController()CssRootNodegetRoot()CssTree.RulesetNodesToRemovegetRulesetNodesToRemove()SourceCodegetSourceCode()VisitControllergetVisitController()voidresetRulesetNodesToRemove()
-
-
-
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 benull.
-
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 benull.
-
-
Method Detail
-
getRoot
public CssRootNode getRoot()
-
getSourceCode
public SourceCode getSourceCode()
-
getRulesetNodesToRemove
public CssTree.RulesetNodesToRemove getRulesetNodesToRemove()
-
resetRulesetNodesToRemove
public void resetRulesetNodesToRemove()
-
getMutatingVisitController
public MutatingVisitController getMutatingVisitController()
-
getVisitController
public VisitController getVisitController()
-
-