Package | Description |
---|---|
com.salesforce.omakase |
Base package for the Omakase CSS Parser, which contains all of the entry-point classes.
|
com.salesforce.omakase.plugin |
Interfaces for plugging new features into the parsing process (rework, validation, etc...).
|
com.salesforce.omakase.plugin.conditionals |
Plugins related to the custom syntax for conditionals.
|
com.salesforce.omakase.plugin.core |
Core plugins.
|
com.salesforce.omakase.plugin.misc |
Other misc plugins.
|
com.salesforce.omakase.plugin.prefixer |
Plugins related to automatic vendor prefixing.
|
com.salesforce.omakase.plugin.syntax |
Plugins related to standard syntax refinement parsing.
|
com.salesforce.omakase.plugin.validator |
Plugins that perform validation.
|
com.salesforce.omakase.writer |
Classes for outputting processed CSS in compressed or uncompressed modes.
|
Modifier and Type | Method and Description |
---|---|
<T extends Plugin> |
PluginRegistry.require(Class<T> klass)
Specifies that a particular plugin is required as a dependency.
|
<T extends Plugin> |
PluginRegistry.require(Class<T> klass,
Supplier<T> supplier)
Same as
PluginRegistry.require(Class) , except this should be used for custom (non-library-provided) plugins. |
<T extends Plugin> |
PluginRegistry.retrieve(Class<T> klass)
Retrieves the instance of the given
Plugin type. |
Modifier and Type | Method and Description |
---|---|
void |
PluginRegistry.register(Plugin plugin)
Registers a single
Plugin . |
Omakase.Request |
Omakase.Request.use(Plugin... plugins)
Registers a plugin to process or utilize the parsed source code.
|
Modifier and Type | Method and Description |
---|---|
void |
PluginRegistry.register(Iterable<? extends Plugin> plugins)
Registers
Plugin instances to this PluginRegistry . |
Omakase.Request |
Omakase.Request.use(Iterable<? extends Plugin> plugins)
Registers a plugin to process or utilize the parsed source code.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DependentPlugin
|
interface |
GrammarPlugin
A
Plugin that provides a custom TokenFactory . |
interface |
ParserPlugin
A
Plugin that provides a custom ParserFactory . |
interface |
PostProcessingPlugin
A
Plugin that wishes to be notified when all processing (rework and validation) is completed. |
Modifier and Type | Class and Description |
---|---|
class |
BasePlugin
An optional base
Plugin that can be extended from or used to see which types of subscriptions are possible. |
Modifier and Type | Class and Description |
---|---|
class |
Conditionals
An extension to the standard CSS syntax that allows for conditional at-rules.
|
class |
ConditionalsCollector
Collects the set of all found conditions, i.e., the arguments inside of
ConditionalAtRuleBlock s, from the Conditionals plugin. |
class |
ConditionalsRefiner
Parses
AtRule objects that are ConditionalAtRuleBlock s. |
class |
ConditionalsValidator
A validator plugin that will validate the correctness of the syntax and contents of conditional at-rules (
ConditionalAtRuleBlock ). |
Modifier and Type | Class and Description |
---|---|
class |
AutoRefine
Automatically refines
Refinable types. |
class |
StandardValidation
Enables all standard library-provided validations.
|
class |
SyntaxTree
A plugin that stores the parsed
Stylesheet object. |
Modifier and Type | Method and Description |
---|---|
Iterable<Class<? extends Plugin>> |
AutoRefine.Match.plugins()
Gets the plugins needed to auto-refine this type.
|
Modifier and Type | Class and Description |
---|---|
class |
DirectionFlipPlugin
DirectionFlipPlugin changes the direction of CSS property names, keywords, and term lists from left to right, or from right to
left.
|
Modifier and Type | Class and Description |
---|---|
class |
PrefixCleaner
This plugin handles removing unnecessary prefixed units.
|
class |
Prefixer
This experimental plugin automagically handles vendor prefixing of css property names, function values, at-rules and
selectors.
|
Modifier and Type | Class and Description |
---|---|
class |
DeclarationPlugin
Refines
Declaration s. |
class |
FontFacePlugin
Refines font-face at-rules (@font-face).
|
class |
KeyframesPlugin
Refines keyframes at-rules (@keyframes).
|
class |
LinearGradientPlugin
Refines
RawFunction s to LinearGradientFunctionValue s. |
class |
MediaPlugin
Refines media query at-rules (
@media ). |
class |
SelectorPlugin
Refines
Selector s. |
class |
SupportsPlugin
Refines (generically) the supports at-rule (@supports).
|
class |
UnquotedIEFilterPlugin
This plugin enables unquoted IE proprietary filters.
|
class |
UrlPlugin
Refines
RawFunction s to UrlFunctionValue s. |
Modifier and Type | Class and Description |
---|---|
class |
PseudoElementValidator
Validates that
PseudoElementSelector s are last within a selector sequence (the last SelectorPart within a
Selector ). |
Modifier and Type | Class and Description |
---|---|
class |
StyleWriter
The main class for writing processed CSS content.
|
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.