Package lipstone.joshua.parser.plugin

Examples of lipstone.joshua.parser.plugin.ParserPlugin


  @Override
  public void loadPlugin(ParserPlugin plugin) throws PluginConflictException, UntypedPluginException {
    if (!(plugin instanceof OperationPlugin || plugin instanceof KeywordPlugin || plugin instanceof InputFilterPlugin ||
        plugin instanceof OutputFilterPlugin || plugin instanceof CommandPlugin || plugin instanceof SettingsPlugin))
      throw new UntypedPluginException(plugin);
    ParserPlugin temp = lastPlugin;
    lastPlugin = plugin;
    plugin.loadPlugin(this);
    if (plugin instanceof InputFilterPlugin)
      preProcessFilters.add((InputFilterPlugin) plugin);
    if (plugin instanceof OutputFilterPlugin)
View Full Code Here


   * @throws PluginConflictException
   *             if the plugin tries to remove operations, keywords, or commands that another plugin registered
   */
  @Override
  public void unloadPlugin(ParserPlugin plugin) throws PluginConflictException {
    ParserPlugin temp = lastPlugin;
    lastPlugin = plugin;
    if (plugin instanceof InputFilterPlugin)
      preProcessFilters.remove(plugin);
    if (plugin instanceof OutputFilterPlugin)
      postProcessFilters.remove(plugin);
View Full Code Here

TOP

Related Classes of lipstone.joshua.parser.plugin.ParserPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.