public interface PostProcessingPlugin extends Plugin
Plugin
that wishes to be notified when all processing (rework and validation) is completed.
Please be aware that as this is post processing, any changes or modifications made to AST objects will not be automatically provided to plugin subscription methods. Post processing is generally best for read-only operations.
If you are looking to make modifications after the last rule has been parsed, consider creating a subscription method to Stylesheet
, which should be the very last syntax unit to be broadcasted (except any broadcasts resulted from changes you make,
which means multiple plugins doing this may not work well together).
Modifier and Type | Method and Description |
---|---|
void |
postProcess(PluginRegistry registry)
This method will be called after all processing has completed (rework and validation).
|
void postProcess(PluginRegistry registry)
This could be used when the Plugin
must defer its processing until it is certain that all Selector
s and
Declaration
s within the source are processed.
registry
- The PluginRegistry
.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.