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)
  • Field Details

    • refinerType

      protected final CssRefinerNode.Refiner refinerType
      Type of refiner.
    • refinerName

      protected final String refinerName
      Name of the refiner.
  • Constructor Details

  • Method Details

    • getRefinerName

      public String getRefinerName()
    • getRefinerType

      public CssRefinerNode.Refiner getRefinerType()
    • getPrefix

      public String getPrefix()
    • getSuffix

      public String getSuffix()
    • getSpecificity

      public abstract CssSelectorNode.Specificity getSpecificity()
    • toString

      public String toString()
      Description copied from class: CssNode
      This is the default implementation of toString().

      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.

      Overrides:
      toString in class CssNode
      See Also: