Class BrowserPrefixRule
- java.lang.Object
-
- com.google.common.css.compiler.passes.BrowserPrefixRule
-
public final class BrowserPrefixRule extends java.lang.ObjectA utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.A rule could be matched on property name or value alone, or both property name and value. If the value is a function, then the function names must match.
Each rule, if matched, provides a set of placeholder expansion nodes - which will be cloned and swapped into the tree, as part of AutoExpandBrowserPrefix pass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CssDeclarationNode>getExpansionNodes()java.lang.StringgetMatchPropertyName()java.lang.StringgetMatchPropertyValue()booleanisFunction()
-
-
-
Method Detail
-
getMatchPropertyName
@Nullable public java.lang.String getMatchPropertyName()
-
getMatchPropertyValue
@Nullable public java.lang.String getMatchPropertyValue()
-
isFunction
public boolean isFunction()
-
getExpansionNodes
public java.util.List<CssDeclarationNode> getExpansionNodes()
- Returns:
- A list of expansion nodes that contain a property names, and may contain a value. These nodes should be used when replacing declarations by matching property name.
-
-