Package net.sf.antcontrib.cpptasks.os390
Class OS390CCompiler
- java.lang.Object
-
public class OS390CCompiler extends CommandLineCCompiler
Adapter for the IBM (R) OS/390 (tm) C++ Compiler
-
-
Field Summary
Fields Modifier and Type Field Description private static AbstractCompiler
instance
-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OS390CCompiler(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
protected void
addWarningSwitch(java.util.Vector args, int level)
protected void
buildDefineArguments(CompilerDef[] defs, java.util.Vector args)
The buildDefineArguments implementation CommandLineCCompiler is not good for us because os390 defines are give by -D definex instead of /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not have to implement the getDefineSwitch() and the getUndefineSwitch().Processor
changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
protected void
getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
protected java.io.File[]
getEnvironmentIncludePath()
protected java.lang.String
getIncludeDirSwitch(java.lang.String includeDir)
static AbstractCompiler
getInstance()
Linker
getLinker(LinkType type)
Gets the linker that is associated with this processorsint
getMaximumCommandLength()
protected int
getMaximumInputFilesPerCommand()
protected void
getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getTotalArgumentLengthForInputFile, runCommand, setCommand
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
-
-
-
Field Detail
-
instance
private static final AbstractCompiler instance
-
-
Method Detail
-
getInstance
public static AbstractCompiler getInstance()
-
addImpliedArgs
protected void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
- Specified by:
addImpliedArgs
in classCommandLineCompiler
-
addWarningSwitch
protected void addWarningSwitch(java.util.Vector args, int level)
- Specified by:
addWarningSwitch
in classCommandLineCompiler
-
buildDefineArguments
protected void buildDefineArguments(CompilerDef[] defs, java.util.Vector args)
The buildDefineArguments implementation CommandLineCCompiler is not good for us because os390 defines are give by -D definex instead of /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not have to implement the getDefineSwitch() and the getUndefineSwitch().- Overrides:
buildDefineArguments
in classCommandLineCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
- Specified by:
changeEnvironment
in interfaceProcessor
- Overrides:
changeEnvironment
in classAbstractProcessor
-
getDefineSwitch
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
- Specified by:
getDefineSwitch
in classCommandLineCompiler
-
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
-
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
-
getLinker
public Linker getLinker(LinkType type)
Description copied from interface:Processor
Gets the linker that is associated with this processors
-
getMaximumCommandLength
public int getMaximumCommandLength()
- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
-
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
- Overrides:
getMaximumInputFilesPerCommand
in classCommandLineCompiler
-
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
- Specified by:
getUndefineSwitch
in classCommandLineCompiler
-
-