net.sf.antcontrib.cpptasks.sun
Class C89CCompiler

java.lang.Object
  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
                  extended by net.sf.antcontrib.cpptasks.sun.C89CCompiler
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor

public class C89CCompiler
extends CommandLineCCompiler

Adapter for the Sun C89 C++ Compiler

Author:
Hiram Chirino (cojonudo14@hotmail.com)

Field Summary
 
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
 
Method Summary
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)
           
 Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
           
protected  void getDefineSwitch(java.lang.StringBuffer buf, 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 processors
 int getMaximumCommandLength()
           
protected  int getMaximumInputFilesPerCommand()
           
protected  void getUndefineSwitch(java.lang.StringBuffer buf, 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, buildDefineArguments, 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
 
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
 

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 class CommandLineCompiler

addWarningSwitch

protected void addWarningSwitch(java.util.Vector args,
                                int level)
Specified by:
addWarningSwitch in class CommandLineCompiler

changeEnvironment

public Processor changeEnvironment(boolean newEnvironment,
                                   org.apache.tools.ant.types.Environment env)
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor

getDefineSwitch

protected void getDefineSwitch(java.lang.StringBuffer buf,
                               java.lang.String define,
                               java.lang.String value)
Specified by:
getDefineSwitch in class CommandLineCompiler

getEnvironmentIncludePath

protected java.io.File[] getEnvironmentIncludePath()
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler

getIncludeDirSwitch

protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
Specified by:
getIncludeDirSwitch in class CommandLineCompiler

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 class CommandLineCompiler

getMaximumInputFilesPerCommand

protected int getMaximumInputFilesPerCommand()
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler

getUndefineSwitch

protected void getUndefineSwitch(java.lang.StringBuffer buf,
                                 java.lang.String define)
Specified by:
getUndefineSwitch in class CommandLineCompiler


Copyright 2001-2008 Ant-Contrib Project. All Rights Reserved.