Class CssCombinatorNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssCombinatorNode
- All Implemented Interfaces:
Locatable
A node representing a combinator of selectors in the AST.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumContains the list of all possible CSS combinators. -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor.CssCombinatorNode(CssCombinatorNode.Combinator type, SourceCodeLocation sourceCodeLocation) Constructor of a combinator node.CssCombinatorNode(CssSelectorNode selector, CssCombinatorNode.Combinator type, SourceCodeLocation sourceCodeLocation) Constructor of a combinator node. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()voidsetSelector(CssSelectorNode selector) toString()This is the default implementation oftoString().Methods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getSourceCodeLocation, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
Constructor Details
-
CssCombinatorNode
public CssCombinatorNode(CssSelectorNode selector, CssCombinatorNode.Combinator type, SourceCodeLocation sourceCodeLocation) Constructor of a combinator node.- Parameters:
selector- selectortype- typesourceCodeLocation- sourceCodeLocation
-
CssCombinatorNode
Constructor of a combinator node.- Parameters:
type- typesourceCodeLocation- sourceCodeLocation
-
CssCombinatorNode
Copy constructor.- Parameters:
node- node
-
-
Method Details
-
deepCopy
-
getSelector
-
setSelector
-
getCombinatorType
-
toString
Description copied from class:CssNodeThis is the default implementation oftoString().Overriding this method should only be done for debugging or logging purposes, not for the actual functionality of the compiler. If a string representation of a tree is needed, define a Visitor that builds the desired representation.
-