Class PassUtil
java.lang.Object
com.google.common.css.compiler.passes.PassUtil
Utility methods that can be useful for compiler passes.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether the ALTERNATE comment has been found among the comments of the node.static StringprettyPrintSelector(CssSelectorNode selector) Prints a selector including the combinators and refiners but without a block behind with the pretty printer.static StringprintSelector(CssSelectorNode selector) Prints a selector including the combinators and refiners but without a block behind with the compact printer.static StringprintSelectorList(CssSelectorListNode selectorList) Prints a list of selector including the combinators and refiners but without a block behind with the compact printer.
-
Field Details
-
ALTERNATE
Annotation to explicitly state that several consecutive declarations are alternatives and it should be left up to the user agent to interpret whichever is appropriate. The annotation excludes the declarations from being treated as redundant.- See Also:
-
-
Method Details
-
printSelector
Prints a selector including the combinators and refiners but without a block behind with the compact printer. -
printSelectorList
Prints a list of selector including the combinators and refiners but without a block behind with the compact printer. -
prettyPrintSelector
Prints a selector including the combinators and refiners but without a block behind with the pretty printer. -
hasAlternateAnnotation
Returns whether the ALTERNATE comment has been found among the comments of the node.
-