net.sf.antcontrib.cpptasks.compiler
Class AbstractProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
- Cloneable, Processor
public abstract class AbstractProcessor
extends java.lang.Object
An abstract processor (compiler/linker) implementation.
static int | DEFAULT_DISCARD_BID - default bid for a file name that the processor recognizes but does not
process and does not want to fall through to the linker
|
static int | DEFAULT_PROCESS_BID - default bid for a file name that the processor desires to process
|
int | bid(String inputFile) - Returns the bid of the processor for the file.
|
Processor | changeEnvironment(boolean newEnvironment, Environment env)
|
protected Object | clone()
|
String[] | getHeaderExtensions()
|
abstract String | getIdentifier()
|
protected static String | getIdentifier(String[] command, String fallback) - Determines the identification of a command line processor by capture the
first line of its output for a specific command.
|
protected String | getOSArch() - Gets the target operating system architecture
|
protected String | getOSName() - Gets the target operating system name
|
String[] | getSourceExtensions()
|
protected boolean | isDarwin() - Returns true if the target operating system is Mac OS X or Darwin.
|
String | toString()
|
DEFAULT_DISCARD_BID
public static final int DEFAULT_DISCARD_BID
default bid for a file name that the processor recognizes but does not
process and does not want to fall through to the linker
DEFAULT_PROCESS_BID
public static final int DEFAULT_PROCESS_BID
default bid for a file name that the processor desires to process
AbstractProcessor
protected AbstractProcessor(String[] sourceExtensions,
String[] headerExtensions)
bid
public int bid(String inputFile)
Returns the bid of the processor for the file.
- bid in interface Processor
inputFile
- filename of input file
- bid for the file, 0 indicates no interest, 1 indicates that the
processor recognizes the file but doesn't process it (header
files, for example), 100 indicates strong interest
clone
protected Object clone()
throws CloneNotSupportedException
getHeaderExtensions
public String[] getHeaderExtensions()
getIdentifier
protected static String getIdentifier(String[] command,
String fallback)
Determines the identification of a command line processor by capture the
first line of its output for a specific command.
command
- array of command line arguments starting with executable
name. For example, { "cl" }fallback
- start of identifier if there is an error in executing the
command
- identifier for the processor
getOSArch
protected String getOSArch()
Gets the target operating system architecture
- String target operating system architecture
getOSName
protected String getOSName()
Gets the target operating system name
- String target operating system name
getSourceExtensions
public String[] getSourceExtensions()
isDarwin
protected boolean isDarwin()
Returns true if the target operating system is Mac OS X or Darwin.
toString
public final String toString()
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.