Package | Description |
---|---|
com.salesforce.omakase.ast.declaration |
Contains declaration AST members.
|
com.salesforce.omakase.data |
Various data and constants, usually generated.
|
com.salesforce.omakase.plugin.prefixer |
Plugins related to automatic vendor prefixing.
|
com.salesforce.omakase.util |
Utilities and helpers.
|
Modifier and Type | Method and Description |
---|---|
Optional<Prefix> |
LinearGradientFunctionValue.prefix()
Gets the prefix, if present.
|
Optional<Prefix> |
PropertyName.prefix()
Gets the prefix, if present.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyName.hasPrefix(Prefix prefix)
Gets whether this
PropertyName has the given Prefix . |
LinearGradientFunctionValue |
LinearGradientFunctionValue.prefix(Prefix prefix)
Sets the vendor prefix.
|
PropertyName |
PropertyName.prefix(Prefix prefix)
Sets the prefix for this property name.
|
Modifier and Type | Method and Description |
---|---|
Prefix |
Browser.prefix()
Gets the prefix used by this browser.
|
static Prefix |
Prefix.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Prefix[] |
Prefix.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
PrefixCleaner |
PrefixCleaner.keep(Prefix prefix)
NOT IMPLEMENTED: Removes all units with a prefix that doesn't match the given one.
|
static PrefixCleaner |
PrefixCleaner.onlyKeep(Prefix prefix)
NOT IMPLEMENTED: Creates a new
PrefixCleaner that will eliminate all units with prefixes that do not match the
given prefix. |
Constructor and Description |
---|
PrefixCleaner(Prefix prefix)
Creates a new
PrefixCleaner instance that will remove all units with a prefix that doesn't match the given one. |
Modifier and Type | Method and Description |
---|---|
static Optional<Prefix> |
Prefixes.parsePrefix(String name)
Finds the vendor
Prefix at the start of the given string. |
Optional<Prefix> |
Prefixes.PrefixPair.prefix()
Gets the
Prefix . |
static <P,N extends Named> |
Equivalents.prefixes(P peer,
N unprefixed,
Equivalents.EquivalentWalker<P,N> walker)
Finds all peers of the given unit that match the same name, but with a prefix.
|
Set<Prefix> |
SupportMatrix.prefixesForAtRule(String name)
Gets all prefixes required for the given at-rule (e.g., "keyframes"), according to the supported browser versions.
|
Set<Prefix> |
SupportMatrix.prefixesForFunction(String name)
Gets all prefixes required for the given function name (e.g., "calc" or "linear-gradient"), according to the supported
browser versions.
|
Set<Prefix> |
SupportMatrix.prefixesForKeyword(Keyword keyword)
Gets all prefixes required for the given
Keyword according to the supported browser versions. |
Set<Prefix> |
SupportMatrix.prefixesForProperty(Property property)
Gets all prefixes required for the given
Property according to the supported browser versions. |
Set<Prefix> |
SupportMatrix.prefixesForSelector(String name)
Gets all prefixes required for the given selector (e.g., "selection"), according to the supported browser versions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SupportMatrix.requiresPrefixForAtRule(Prefix prefix,
String name)
Gets whether the given
Prefix is required for the given at-rule, according to the supported browser versions. |
boolean |
SupportMatrix.requiresPrefixForFunction(Prefix prefix,
String function)
Gets whether the given
Prefix is required for the given function name, according to the supported browser
versions. |
boolean |
SupportMatrix.requiresPrefixForKeyword(Prefix prefix,
Keyword keyword)
|
boolean |
SupportMatrix.requiresPrefixForProperty(Prefix prefix,
Property property)
|
boolean |
SupportMatrix.requiresPrefixForSelector(Prefix prefix,
String name)
Gets whether the given
Prefix is required for the given selector name, according to the supported browser
versions. |
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.