Class CommandLineLinkerConfiguration
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration
-
- All Implemented Interfaces:
LinkerConfiguration,ProcessorConfiguration
public final class CommandLineLinkerConfiguration extends java.lang.Object implements LinkerConfiguration
A configuration for a command line linker- Author:
- Curt Arnold
-
-
Constructor Summary
Constructors Constructor Description CommandLineLinkerConfiguration(CommandLineLinker linker, java.lang.String identifier, java.lang.String[][] args, ProcessorParam[] params, boolean rebuild, boolean map, boolean debug, java.lang.String[] libraryNames, java.lang.String startupObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbid(java.lang.String filename)An indication of how much this compiler would like to process this filejava.lang.String[]getEndArguments()java.lang.StringgetIdentifier()Returns a string representation of this configuration.java.lang.String[]getLibraryNames()LinkergetLinker()booleangetMap()java.lang.String[]getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)Output file name (no path components) corresponding to source fileLinkerParamgetParam(java.lang.String name)ProcessorParam[]getParams()java.lang.String[]getPreArguments()booleangetRebuild()If true, all files using this configuration should be rebuilt and any existing output files should be ignoredjava.lang.StringgetStartupObject()booleanisDebug()voidlink(CCTask task, TargetInfo linkTarget)java.lang.StringtoString()
-
-
-
Constructor Detail
-
CommandLineLinkerConfiguration
public CommandLineLinkerConfiguration(CommandLineLinker linker, java.lang.String identifier, java.lang.String[][] args, ProcessorParam[] params, boolean rebuild, boolean map, boolean debug, java.lang.String[] libraryNames, java.lang.String startupObject)
-
-
Method Detail
-
bid
public int bid(java.lang.String filename)
Description copied from interface:ProcessorConfigurationAn indication of how much this compiler would like to process this file- Specified by:
bidin interfaceProcessorConfiguration- Returns:
- 0 is no interest to process, 100 is strong interest to process
-
getEndArguments
public java.lang.String[] getEndArguments()
-
getIdentifier
public java.lang.String getIdentifier()
Returns a string representation of this configuration. Should be canonical so that equivalent configurations will have equivalent string representations- Specified by:
getIdentifierin interfaceProcessorConfiguration
-
getLibraryNames
public java.lang.String[] getLibraryNames()
-
getMap
public boolean getMap()
-
getOutputFileNames
public java.lang.String[] getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)Description copied from interface:ProcessorConfigurationOutput file name (no path components) corresponding to source file- Specified by:
getOutputFileNamesin interfaceProcessorConfiguration- Parameters:
inputFile- input file- Returns:
- output file names or zero-length array if no output file or name not determined by input file
-
getParam
public LinkerParam getParam(java.lang.String name)
- Specified by:
getParamin interfaceLinkerConfiguration
-
getParams
public ProcessorParam[] getParams()
- Specified by:
getParamsin interfaceProcessorConfiguration
-
getPreArguments
public java.lang.String[] getPreArguments()
-
getRebuild
public boolean getRebuild()
Description copied from interface:ProcessorConfigurationIf true, all files using this configuration should be rebuilt and any existing output files should be ignored- Specified by:
getRebuildin interfaceProcessorConfiguration
-
getStartupObject
public java.lang.String getStartupObject()
-
link
public void link(CCTask task, TargetInfo linkTarget) throws org.apache.tools.ant.BuildException
- Specified by:
linkin interfaceLinkerConfiguration- Throws:
org.apache.tools.ant.BuildException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLinker
public Linker getLinker()
- Specified by:
getLinkerin interfaceLinkerConfiguration
-
isDebug
public boolean isDebug()
- Specified by:
isDebugin interfaceLinkerConfiguration
-
-