net.sf.antcontrib.cpptasks.compiler

Interface Processor

public interface Processor

A processor. Base interface for Compiler and Linker

Author: Curt Arnold

Method Summary
intbid(String inputFile)
Returns a bid indicating the desire of this compiler to process the file.
ProcessorchangeEnvironment(boolean newEnvironment, Environment env)
ProcessorConfigurationcreateConfiguration(CCTask task, LinkType linkType, ProcessorDef[] defaultProviders, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
Returns the compiler configuration for or element.
StringgetIdentifier()
Retrieve an identifier that identifies the specific version of the compiler.
LinkergetLinker(LinkType type)
Gets the linker that is associated with this processors
String[]getOutputFileNames(String inputFile, VersionInfo versionInfo)
Output file name (no path components) corresponding to source file

Method Detail

bid

public int bid(String inputFile)
Returns a bid indicating the desire of this compiler to process the file.

Parameters: inputFile input file

Returns: 0 = no interest, 100 = high interest

changeEnvironment

public Processor changeEnvironment(boolean newEnvironment, Environment env)

createConfiguration

public ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] defaultProviders, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
Returns the compiler configuration for or element.

Parameters: defaultProviders When specificConfig corresponds to a or linker element, defaultProvider will be a zero to two element array. If there is an extends attribute, the first element will be the referenced ProcessorDef, unless inherit = false, the last element will be the containing element specificConfig A or element.

Returns: resulting configuration

getIdentifier

public String getIdentifier()
Retrieve 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.

getLinker

public Linker getLinker(LinkType type)
Gets the linker that is associated with this processors

getOutputFileNames

public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo)
Output file name (no path components) corresponding to source file

Parameters: inputFile input file

Returns: output file name or null if no output file or name not determined by input file

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.