public interface ParserPluginService
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(java.lang.String pluginName,
java.io.InputStream regEx,
ScriptPlugin plugin)
Adds a script plugin.
|
void |
addPlugin(java.lang.String pluginName,
java.lang.String regEx,
ScriptPlugin plugin)
Adds a script plugin.
|
void |
removePlugin(java.lang.String pluginName)
Removes a script plugin.
|
void addPlugin(java.lang.String pluginName,
java.io.InputStream regEx,
ScriptPlugin plugin)
throws InvalidPluginException
pluginName - name of this plugin. All plugins are identified by their names.
If a plugin with such name already exists, this method will remove it and
replace it with the new one.regEx - must represent a regular expression that defines lexical form of
the newly defined script commands.plugin - a ScrptPlugin object that shall provide semantic fro the
newly defined script commands.InvalidPluginException - is thrown if the parameter regEx
does not represent a correct regular expression, or if the commands defined
by this regular expressions are in collision with already existing commands
that have the same start.InvalidPluginExceptionvoid addPlugin(java.lang.String pluginName,
java.lang.String regEx,
ScriptPlugin plugin)
throws InvalidPluginException
pluginName - name of this plugin. All plugins are identified by their names
If a plugin with such name already exists, this method shall remove it and
replace it with the new one.regEx - must represent a regular expression that defines lexical form of
the newly defined script commands.plugin - a ScrptPlugin object that shall provide semantic fro the
newly defined script commands.InvalidPluginException - is thrown if the parameter regEx
does not represent a correct regular expression, or if the commands defined
by this regular expressions are in collision with already existing commands
that have the same start.InvalidPluginExceptionvoid removePlugin(java.lang.String pluginName)
pluginName - name of the plugin.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.