Class AbstractProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
- Direct Known Subclasses:
AbstractCompiler, AbstractLinker
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intdefault bid for a file name that the processor recognizes but does not process and does not want to fall through to the linkerstatic final intdefault bid for a file name that the processor desires to process -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractProcessor(String[] sourceExtensions, String[] headerExtensions) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the bid of the processor for the file.changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) protected Objectclone()String[]abstract StringRetrieve an identifier that identifies the specific version of the compiler.protected static StringgetIdentifier(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 StringGets the target operating system architectureprotected StringGets the target operating system nameString[]protected booleanisDarwin()Returns true if the target operating system is Mac OS X or Darwin.final StringtoString()Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Processor
createConfiguration, getLinker, getOutputFileNames
-
Field Details
-
DEFAULT_DISCARD_BID
public static final int DEFAULT_DISCARD_BIDdefault bid for a file name that the processor recognizes but does not process and does not want to fall through to the linker- See Also:
-
DEFAULT_PROCESS_BID
public static final int DEFAULT_PROCESS_BIDdefault bid for a file name that the processor desires to process- See Also:
-
-
Constructor Details
-
AbstractProcessor
-
-
Method Details
-
getIdentifier
Determines the identification of a command line processor by capture the first line of its output for a specific command.- Parameters:
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- Returns:
- identifier for the processor
-
bid
Returns the bid of the processor for the file. -
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironmentin interfaceProcessor
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getHeaderExtensions
-
getIdentifier
Description copied from interface:ProcessorRetrieve an identifier that identifies the specific version of the compiler. Compilers with the same identifier should produce the same output files for the same input files and command line switches.- Specified by:
getIdentifierin interfaceProcessor
-
getOSArch
Gets the target operating system architecture- Returns:
- String target operating system architecture
-
getOSName
Gets the target operating system name- Returns:
- String target operating system name
-
getSourceExtensions
-
isDarwin
protected boolean isDarwin()Returns true if the target operating system is Mac OS X or Darwin.- Returns:
- boolean
-
toString
-