org.ow2.mind.CommandLineOptionExtensionHelper Maven / Gradle / Ivy
/**
* Copyright (C) 2009 STMicroelectronics
*
* This file is part of "Mind Compiler" is free software: you can redistribute
* it and/or modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Contact: [email protected]
*
* Authors: Ali Erdem Ozcan
* Contributors:
*/
package org.ow2.mind;
import static org.ow2.mind.plugin.ast.PluginASTHelper.getExtensionConfig;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.objectweb.fractal.adl.ADLException;
import org.objectweb.fractal.adl.error.GenericErrors;
import org.ow2.mind.AbstractLauncher.CmdAppendOption;
import org.ow2.mind.AbstractLauncher.CmdArgument;
import org.ow2.mind.AbstractLauncher.CmdFlag;
import org.ow2.mind.AbstractLauncher.CmdOption;
import org.ow2.mind.AbstractLauncher.CmdPathOption;
import org.ow2.mind.AbstractLauncher.CmdProperties;
import org.ow2.mind.plugin.PluginManager;
import org.ow2.mind.plugin.ast.Extension;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public final class CommandLineOptionExtensionHelper {
protected static Collection cmdOptions = null;
public static final String COMMAND_LINE_OPTIONS_EXTENSION = "org.ow2.mind.mindc.command-line-options";
protected static final Map handlerMap = new HashMap();
private CommandLineOptionExtensionHelper() {
}
/**
* Returns the collection of {@link CmdOption} objects that defined by loaded
* the plugins.
*
* @param pluginManagerItf the plugin manager component to be used for loading
* plugins.
* @param context the compilation context.
* @return the collection of {@link CmdOption} objects that defined by loaded
* the plugins.
* @throws ADLException if any problems occur while loading the plugins.
*/
public static Collection getCommandOptions(
final PluginManager pluginManagerItf, final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy