|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler
public final class MetaObjectCompiler
Adapter for the Trolltech Qt MOC Compiler.
| Field Summary |
|---|
| Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
|---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
| Method Summary | |
|---|---|
protected void |
addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
Add arguments for debug, etc. |
protected void |
addWarningSwitch(Vector args,
int level)
Add arguments for specified warning level. |
int |
bid(String inputFile)
Returns the bid of the processor for the file. |
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
Change enviroment (deprecated). |
protected Parser |
createParser(File source)
Gets a parser to scan source file for dependencies. |
protected int |
getArgumentCountPerInputFile()
Gets number of command line arguments per input file. |
protected void |
getDefineSwitch(StringBuffer buffer,
String define,
String value)
Gets switch to define preprocessor macro. |
protected File[] |
getEnvironmentIncludePath()
Gets standard include paths. |
protected String |
getIncludeDirSwitch(String includeDir)
Gets include directory switch. |
protected String |
getInputFileArgument(File outputDir,
String filename,
int index)
Gets input file arguments. |
static MetaObjectCompiler |
getInstance()
Gets singleton instance of compiler. |
Linker |
getLinker(LinkType type)
Gets linker associated with this type. |
int |
getMaximumCommandLength()
Gets maximum length of command line. |
protected int |
getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command. |
String[] |
getOutputFileNames(String inputFile,
VersionInfo versionInfo)
Gets output file names. |
protected int |
getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
Get total command line length due to the input file. |
protected void |
getUndefineSwitch(StringBuffer buffer,
String define)
Gets switch to undefine preprocessor macro. |
| Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler |
|---|
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getIdentifier, getIncludeDirSwitch, getLibtool, getLibtoolCompiler, runCommand, setCommand |
| Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler |
|---|
canParse, createConfiguration, getBaseOutputName, parseIncludes, resolveInclude |
| Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
|---|
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static MetaObjectCompiler getInstance()
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
addImpliedArgs in class CommandLineCompilerargs - 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 addWarningSwitch(Vector args,
int level)
addWarningSwitch in class CommandLineCompilerargs - Vector command line argumentslevel - int warning level value
public Processor changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
changeEnvironment in interface ProcessorchangeEnvironment in class AbstractProcessornewEnvironment - boolean use new environment.env - Environment environment
protected Parser createParser(File source)
createParser in class AbstractCompilersource - source file
protected int getArgumentCountPerInputFile()
getArgumentCountPerInputFile in class CommandLineCompilerpublic int bid(String inputFile)
bid in interface Processorbid in class AbstractProcessorinputFile - filename of input file
public String[] getOutputFileNames(String inputFile,
VersionInfo versionInfo)
getOutputFileNames in interface ProcessorgetOutputFileNames in class AbstractCompilerinputFile - String input file nameversionInfo - version info, not used by this compiler.
protected String getInputFileArgument(File outputDir,
String filename,
int index)
getInputFileArgument in class CommandLineCompileroutputDir - File output directoryfilename - String input file name.index - int argument index,
0 to getNumberOfArgumentsPerInputFile() -1
public int getMaximumCommandLength()
getMaximumCommandLength in class CommandLineCompilerprotected int getMaximumInputFilesPerCommand()
getMaximumInputFilesPerCommand in class CommandLineCompilerprotected String getIncludeDirSwitch(String includeDir)
getIncludeDirSwitch in class CommandLineCompilerincludeDir - String include directory
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value)
getDefineSwitch in class CommandLineCompilerbuffer - StringBuffer command line argumentdefine - String macro namevalue - String macro value, may be null.
protected void getUndefineSwitch(StringBuffer buffer,
String define)
getUndefineSwitch in class CommandLineCompilerbuffer - StringBuffer command line argumentdefine - String macro nameprotected File[] getEnvironmentIncludePath()
getEnvironmentIncludePath in class CommandLineCompilerpublic Linker getLinker(LinkType type)
type - LinkType linker, returns ld.
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
getTotalArgumentLengthForInputFile in class CommandLineCompileroutputDir - File output directoryinputFile - String input file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||