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
public abstract class CssRefinerNode extends CssNode
A node representing a refiner of a selector in the AST. Examples:.class,#id,:nth-child(2n+1),:not(#id)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCssRefinerNode.RefinerContains the list of all possible CSS refiners.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringrefinerNameName of the refiner.protected CssRefinerNode.RefinerrefinerTypeType of refiner.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCssRefinerNode(CssRefinerNode.Refiner refinerType, java.lang.String refinerName, SourceCodeLocation sourceCodeLocation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPrefix()java.lang.StringgetRefinerName()CssRefinerNode.RefinergetRefinerType()abstract CssSelectorNode.SpecificitygetSpecificity()java.lang.StringgetSuffix()java.lang.StringtoString()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 Detail
-
refinerType
protected final CssRefinerNode.Refiner refinerType
Type of refiner.
-
refinerName
protected final java.lang.String refinerName
Name of the refiner.
-
-
Constructor Detail
-
CssRefinerNode
protected CssRefinerNode(CssRefinerNode.Refiner refinerType, java.lang.String refinerName, SourceCodeLocation sourceCodeLocation)
-
-
Method Detail
-
getRefinerName
public java.lang.String getRefinerName()
-
getRefinerType
public CssRefinerNode.Refiner getRefinerType()
-
getPrefix
public java.lang.String getPrefix()
-
getSuffix
public java.lang.String getSuffix()
-
getSpecificity
public abstract CssSelectorNode.Specificity getSpecificity()
-
toString
public java.lang.String 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.
-
-