net.sf.antcontrib.cpptasks.compiler
Class AbstractLinker
java.lang.Object
|
+--net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
|
+--net.sf.antcontrib.cpptasks.compiler.AbstractLinker
- Direct Known Subclasses:
- CommandLineLinker
- public abstract class AbstractLinker
- extends AbstractProcessor
- implements Linker
An abstract Linker implementation.
- Author:
- Adam Murdoch
Constructor Summary |
AbstractLinker(java.lang.String[] objExtensions,
java.lang.String[] ignoredExtensions)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
AbstractLinker
public AbstractLinker(java.lang.String[] objExtensions,
java.lang.String[] ignoredExtensions)
createConfiguration
protected abstract LinkerConfiguration createConfiguration(CCTask task,
LinkType linkType,
ProcessorDef[] baseConfigs,
LinkerDef specificConfig)
createConfiguration
public ProcessorConfiguration createConfiguration(CCTask task,
LinkType linkType,
ProcessorDef[] baseConfigs,
ProcessorDef specificConfig)
- Description copied from interface: Processor
- Returns the compiler configuration for or element.
- Tags copied from interface: Processor
- 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 elementspecificConfig
- A or element.- Returns:
- resulting configuration
getOutputFileName
public abstract java.lang.String getOutputFileName(java.lang.String fileName)
- Description copied from interface: Processor
- Output file name (no path components) corresponding to
source file
- Tags copied from interface: Processor
- Parameters:
inputFile
- input file- Returns:
- output file name or null if no output file or name
not determined by input file
bid
public int bid(java.lang.String inputFile)
- Returns the bid of the processor for the file.
A linker will bid 1 on any unrecognized file type.
- Overrides:
- bid in class AbstractProcessor
- Parameters:
inputFile
- filename of input file- Returns:
- 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
getLibraryKey
public java.lang.String getLibraryKey(java.io.File libfile)
- Description copied from interface: Linker
- Extracts the significant part of a library name
to ensure there aren't collisions
- Specified by:
- getLibraryKey in interface Linker
Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.