java.lang.Cloneable, ProcessorAbstractCompiler, AbstractLinkerpublic abstract class AbstractProcessor extends java.lang.Object implements Processor, java.lang.Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
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
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractProcessor(java.lang.String[] sourceExtensions,
java.lang.String[] headerExtensions) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
bid(java.lang.String inputFile) |
Returns the bid of the processor for the file.
|
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env) |
|
protected java.lang.Object |
clone() |
|
java.lang.String[] |
getHeaderExtensions() |
|
abstract java.lang.String |
getIdentifier() |
Retrieve an identifier that identifies the specific version of the
compiler.
|
protected static java.lang.String |
getIdentifier(java.lang.String[] command,
java.lang.String fallback) |
Determines the identification of a command line processor by capture the
first line of its output for a specific command.
|
protected java.lang.String |
getOSArch() |
Gets the target operating system architecture
|
protected java.lang.String |
getOSName() |
Gets the target operating system name
|
java.lang.String[] |
getSourceExtensions() |
|
protected boolean |
isDarwin() |
Returns true if the target operating system is Mac OS X or Darwin.
|
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConfiguration, getLinker, getOutputFileNamespublic static final int DEFAULT_DISCARD_BID
public static final int DEFAULT_PROCESS_BID
protected AbstractProcessor(java.lang.String[] sourceExtensions,
java.lang.String[] headerExtensions)
protected static java.lang.String getIdentifier(java.lang.String[] command,
java.lang.String fallback)
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
commandpublic int bid(java.lang.String inputFile)
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
changeEnvironment in interface Processorprotected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String[] getHeaderExtensions()
public abstract java.lang.String getIdentifier()
ProcessorgetIdentifier in interface Processorprotected java.lang.String getOSArch()
protected java.lang.String getOSName()
public java.lang.String[] getSourceExtensions()
protected boolean isDarwin()
public final java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2001-2018 Ant-Contrib project. All Rights Reserved.