|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.antcontrib.cpptasks.compiler.AbstractProcessor net.sf.antcontrib.cpptasks.compiler.AbstractCompiler net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
public abstract class OpenWatcomCompiler
An abstract base class for the OpenWatcom C and Fortran compilers.
Field Summary |
---|
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID |
Constructor Summary | |
---|---|
protected |
OpenWatcomCompiler(java.lang.String command,
java.lang.String identifierArg,
java.lang.String[] sourceExtensions,
java.lang.String[] headerExtensions,
boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
Constructor. |
Method Summary | |
---|---|
protected void |
addImpliedArgs(java.util.Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
java.lang.Boolean rtti,
OptimizationEnum optimization)
Add implied arguments. |
protected void |
addWarningSwitch(java.util.Vector args,
int level)
Add warning switch. |
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
Change enviroment. |
protected void |
getDefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define,
java.lang.String value)
Get define switch. |
protected java.io.File[] |
getEnvironmentIncludePath()
Get include path from environment. |
protected java.lang.String |
getIncludeDirSwitch(java.lang.String includeDir)
Get include directory switch. |
int |
getMaximumCommandLength()
Get maximum command line length. |
protected void |
getUndefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define)
Get undefine switch. |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler |
---|
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler |
---|
canParse, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude |
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor |
---|
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor |
---|
bid, getLinker |
Constructor Detail |
---|
protected OpenWatcomCompiler(java.lang.String command, java.lang.String identifierArg, java.lang.String[] sourceExtensions, java.lang.String[] headerExtensions, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
command
- String commandidentifierArg
- String identifiersourceExtensions
- String[] source extensionheaderExtensions
- String[] header extensionnewEnvironment
- boolean use new enviromentenv
- Environment environmentMethod Detail |
---|
protected final void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
addImpliedArgs
in class CommandLineCompiler
args
- Vector command line argumentsdebug
- boolean is debugmultithreaded
- boolean multithreaderdexceptions
- boolean support exceptionslinkType
- LinkType link typertti
- Boolean run time type informationoptimization
- OptimizationEnumprotected final void addWarningSwitch(java.util.Vector args, int level)
addWarningSwitch
in class CommandLineCompiler
args
- Vector command line argumentslevel
- int warning levelpublic final Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
changeEnvironment
in interface Processor
changeEnvironment
in class AbstractProcessor
newEnvironment
- boolean use new enviromentenv
- Environment environment
protected final void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
getDefineSwitch
in class CommandLineCompiler
buffer
- StringBuffer bufferdefine
- String preprocessor macrovalue
- String value, may be null.protected final java.io.File[] getEnvironmentIncludePath()
getEnvironmentIncludePath
in class CommandLineCompiler
protected final java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
getIncludeDirSwitch
in class CommandLineCompiler
includeDir
- String include directory
public final int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineCompiler
protected final void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
getUndefineSwitch
in class CommandLineCompiler
buffer
- StringBuffer argument destinationdefine
- String preprocessor macro
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |