| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectnet.sf.antcontrib.cpptasks.compiler.AbstractProcessornet.sf.antcontrib.cpptasks.compiler.AbstractCompilernet.sf.antcontrib.cpptasks.compiler.CommandLineCompilernet.sf.antcontrib.cpptasks.mozilla.XpidlCompilerpublic final class XpidlCompilerextends CommandLineCompilerField Summary |
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor | |
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID | |
Method Summary | |
protected void |
|
protected void |
|
protected void |
|
Processor |
|
void |
|
protected Parser |
|
protected int |
|
protected void |
|
protected File[] |
|
String |
|
protected String |
|
protected String |
|
static XpidlCompiler |
|
Linker | |
int |
|
protected int |
|
String[] |
|
protected int |
|
protected void |
|
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler | |
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand | |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler | |
canParse, createConfiguration, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude | |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor | |
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString | |
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)Add arguments for debug, etc.
- Overrides:
- addImpliedArgs in interface CommandLineCompiler
- Parameters:
args- Vector command argument listdebug- boolean build for debug if truemultithreaded- boolean build for multithreading if trueexceptions- boolean enable exceptions if truelinkType- LinkType output and runtime typertti- Boolean enable run-time type identification if trueoptimization- OptimizationEnum optimization
protected void addIncludes(String baseDirPath,
File[] includeDirs,
Vector args,
Vector relativeArgs,
StringBuffer includePathId)Adds command line arguments for include paths.
- Overrides:
- addIncludes in interface CommandLineCompiler
- Parameters:
baseDirPath- String base directoryincludeDirs- File[] include directoriesargs- Vector command line argumentsrelativeArgs- Vector arguments for configuration identificationincludePathId- StringBuffer buffer for configuration identification
protected void addWarningSwitch(Vector args,
int level)Add arguments for specified warning level.
- Overrides:
- addWarningSwitch in interface CommandLineCompiler
- Parameters:
args- Vector command line argumentslevel- int warning level value
public Processor changeEnvironment(boolean newEnvironment, Environment env)
Change enviroment (deprecated).
- Specified by:
- changeEnvironment in interface Processor
- Overrides:
- changeEnvironment in interface AbstractProcessor
- Parameters:
newEnvironment- boolean use new environment.env- Environment environment
- Returns:
- Processor modified processor
public void compile(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor)
Compiles an .idl file into the corresponding .h and .xpt files.
- Overrides:
- compile in interface CommandLineCompiler
- Parameters:
task- current cc taskoutputDir- output directorysourceFiles- source filesargs- command line arguments that appear before input filesendArgs- command line arguments that appear after input filesrelentless- if true, do not stop at first compilation errorconfig- compiler configurationmonitor- progress monitor
protected Parser createParser(File source)
Gets dependency parser.
- Overrides:
- createParser in interface AbstractCompiler
- Parameters:
source- source file
- Returns:
- parser
protected int getArgumentCountPerInputFile()
Gets number of command line arguments per input file.
- Overrides:
- getArgumentCountPerInputFile in interface CommandLineCompiler
- Returns:
- int number of command line arguments per input file.
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value)Gets switch to define preprocessor macro.
- Overrides:
- getDefineSwitch in interface CommandLineCompiler
- Parameters:
buffer- StringBuffer command line argumentdefine- String macro namevalue- String macro value, may be null.
protected File[] getEnvironmentIncludePath()
Gets standard include paths.
- Overrides:
- getEnvironmentIncludePath in interface CommandLineCompiler
- Returns:
- File[] standard include paths
public String getIdentifier()
Gets compiler identifier.
- Specified by:
- getIdentifier in interface Processor
- Overrides:
- getIdentifier in interface CommandLineCompiler
- Returns:
- String compiler identification string
protected String getIncludeDirSwitch(String includeDir)
Gets include directory switch.
- Overrides:
- getIncludeDirSwitch in interface CommandLineCompiler
- Parameters:
includeDir- String include directory
- Returns:
- String command switch to add specified directory to search path
protected String getInputFileArgument(File outputDir,
String filename,
int index)Gets input file arguments.
- Overrides:
- getInputFileArgument in interface CommandLineCompiler
- Parameters:
outputDir- File output directoryfilename- String input file name.index- int argument index, 0 to getNumberOfArgumentsPerInputFile() -1
- Returns:
- String input file argument
public static XpidlCompiler getInstance()
Gets singleton instance of compiler.
- Returns:
- XpidlCompiler singleton instance
public Linker getLinker(LinkType type)
Gets linker associated with this type.
- Parameters:
type- LinkType linker, returns ld.
- Returns:
- Linker
public int getMaximumCommandLength()
Gets maximum length of command line.
- Overrides:
- getMaximumCommandLength in interface CommandLineCompiler
- Returns:
- int maximum length of command line
protected int getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command.
- Overrides:
- getMaximumInputFilesPerCommand in interface CommandLineCompiler
- Returns:
- int maximum number of input files processed per command.
public String[] getOutputFileNames(String inputFile,
VersionInfo versionInfo)Gets output file names.
- Specified by:
- getOutputFileNames in interface Processor
- Overrides:
- getOutputFileNames in interface AbstractCompiler
- Parameters:
inputFile- String input file nameversionInfo- version info, not used by this compiler.
- Returns:
- String[] output file names
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)Get total command line length due to the input file.
- Overrides:
- getTotalArgumentLengthForInputFile in interface CommandLineCompiler
- Parameters:
outputDir- File output directoryinputFile- String input file
- Returns:
- int characters added to command line for the input file.
protected void getUndefineSwitch(StringBuffer buffer,
String define)Gets switch to undefine preprocessor macro.
- Overrides:
- getUndefineSwitch in interface CommandLineCompiler
- Parameters:
buffer- StringBuffer command line argumentdefine- String macro name