public final class DirectionFlipPlugin extends Object implements DependentPlugin
Constructor and Description |
---|
DirectionFlipPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
dependencies(PluginRegistry registry)
Registers plugin dependencies.
|
void |
flipDeclaration(Declaration declaration)
Flips property names and/or property values.
|
void |
flipKeyword(KeywordValue value)
Flips keywords.
|
public void dependencies(PluginRegistry registry)
DependentPlugin
Any plugins you add to the registry in this method will be ordered before this plugin itself.
Keep in mind that only one instance of a plugin can be added in a single parsing operation. You can use PluginRegistry.require(Class)
, PluginRegistry.require(Class, Supplier)
and PluginRegistry.retrieve(Class)
to assist in scenarios where a plugin instance may have already been added.
Dependencies to include can range from refinement dependencies such as SelectorPlugin
and MediaPlugin
to
other custom plugins.
dependencies
in interface DependentPlugin
registry
- The PluginRegistry
instance.PluginRegistry.require(Class)
,
PluginRegistry.require(Class, Supplier)
,
PluginRegistry.retrieve(Class)
public void flipKeyword(KeywordValue value)
value
- keywordValue to be flipped.public void flipDeclaration(Declaration declaration)
declaration
- Declaration to be flipped.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.