Class CssRefinerNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssRefinerNode
- All Implemented Interfaces:
Locatable
- Direct Known Subclasses:
CssAttributeSelectorNode,CssClassSelectorNode,CssIdSelectorNode,CssPseudoClassNode,CssPseudoElementNode
A node representing a refiner of a selector in the AST.
Examples:
.class, #id,
:nth-child(2n+1), :not(#id)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumContains the list of all possible CSS refiners. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringName of the refiner.protected final CssRefinerNode.RefinerType of refiner. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCssRefinerNode(CssRefinerNode.Refiner refinerType, String refinerName, SourceCodeLocation sourceCodeLocation) -
Method Summary
Modifier and TypeMethodDescriptionabstract CssSelectorNode.SpecificitytoString()This is the default implementation oftoString().Methods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopy, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getSourceCodeLocation, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
Field Details
-
refinerType
Type of refiner. -
refinerName
Name of the refiner.
-
-
Constructor Details
-
CssRefinerNode
protected CssRefinerNode(CssRefinerNode.Refiner refinerType, String refinerName, SourceCodeLocation sourceCodeLocation)
-
-
Method Details
-
getRefinerName
-
getRefinerType
-
getPrefix
-
getSuffix
-
getSpecificity
-
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.
-