Class CssSelectorNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssSelectorNode
- All Implemented Interfaces:
ChunkAware,Locatable
A node representing a selector in the AST.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe specifity of a selector is used to select among rules with the same importance and origin. -
Constructor Summary
ConstructorsConstructorDescriptionCopy-constructor of a selector node.CssSelectorNode(String selectorName) Constructor of a selector node.CssSelectorNode(String selectorName, SourceCodeLocation sourceCodeLocation) Constructor of a selector node. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()getChunk()Gets the chunk id of the node.voidSets the chunk id on the node.voidsetCombinator(CssCombinatorNode combinator) voidsetRefiners(CssRefinerListNode refiners) voidsetSelectorName(String selectorName) toString()For debugging only.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
-
CssSelectorNode
public CssSelectorNode(@Nullable String selectorName, @Nullable SourceCodeLocation sourceCodeLocation) Constructor of a selector node.- Parameters:
selectorName-sourceCodeLocation-
-
CssSelectorNode
Constructor of a selector node.- Parameters:
selectorName-
-
CssSelectorNode
Copy-constructor of a selector node.- Parameters:
node-
-
-
Method Details
-
deepCopy
-
getRefiners
-
setRefiners
-
getCombinator
-
setCombinator
-
setSelectorName
-
getSelectorName
-
getSpecificity
-
setChunk
Description copied from interface:ChunkAwareSets the chunk id on the node.- Specified by:
setChunkin interfaceChunkAware- Parameters:
chunk- an object identifying a chunk
-
getChunk
Description copied from interface:ChunkAwareGets the chunk id of the node.- Specified by:
getChunkin interfaceChunkAware- Returns:
- the chunk id or
nullif no chunk id was previously set
-
toString
For debugging only.
-