net.sf.antcontrib.cpptasks.gcc
Class GccCompatibleCCompiler

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.compiler.CommandLineCCompiler
                          |
                          +--net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
Direct Known Subclasses:
aCCCompiler, ForteCCCompiler, GccCCompiler, IntelLinux32CCompiler, IntelLinux64CCompiler, VisualAgeCCompiler

public abstract class GccCompatibleCCompiler
extends CommandLineCCompiler

Abstract base class for compilers that attempt to be command line compatible with GCC

Author:
Adam Murdoch, Curt Arnold

Constructor Summary
protected GccCompatibleCCompiler(java.lang.String command, java.lang.String identifierArg, boolean libtool, GccCompatibleCCompiler libtoolCompiler)
          Private constructor.
 
Method Summary
 void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType)
           
 void addIncludePath(java.lang.String path, java.util.Vector cmd)
          Adds an include path to the command.
 void addWarningSwitch(java.util.Vector args, int level)
           
 void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
           
protected  java.io.File[] getEnvironmentIncludePath()
           
 java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
           
 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, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileName, parseIncludes, resolveInclude
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, getIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GccCompatibleCCompiler

protected GccCompatibleCCompiler(java.lang.String command,
                                 java.lang.String identifierArg,
                                 boolean libtool,
                                 GccCompatibleCCompiler libtoolCompiler)
Private constructor. Use GccCCompiler.getInstance() to get singleton instance of this class.
Method Detail

getIncludeDirSwitch

public java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
Overrides:
getIncludeDirSwitch in class CommandLineCompiler

getEnvironmentIncludePath

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

addWarningSwitch

public void addWarningSwitch(java.util.Vector args,
                             int level)
Overrides:
addWarningSwitch in class CommandLineCompiler

addImpliedArgs

public void addImpliedArgs(java.util.Vector args,
                           boolean debug,
                           boolean multithreaded,
                           boolean exceptions,
                           LinkType linkType)
Overrides:
addImpliedArgs in class CommandLineCompiler

getDefineSwitch

public void getDefineSwitch(java.lang.StringBuffer buffer,
                            java.lang.String define,
                            java.lang.String value)
Overrides:
getDefineSwitch in class CommandLineCompiler

getUndefineSwitch

public void getUndefineSwitch(java.lang.StringBuffer buffer,
                              java.lang.String define)
Overrides:
getUndefineSwitch in class CommandLineCompiler

addIncludePath

public void addIncludePath(java.lang.String path,
                           java.util.Vector cmd)
Adds an include path to the command.


Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.