public abstract class AbstractCompiler extends AbstractProcessor implements Compiler
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompiler(java.lang.String[] sourceExtensions,
java.lang.String[] headerExtensions,
java.lang.String outputSuffix) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canParse(java.io.File sourceFile)
Checks file name to see if parse should be attempted
Default implementation returns false for files with extensions '.dll',
'tlb', '.res'
|
protected abstract CompilerConfiguration |
createConfiguration(CCTask task,
LinkType linkType,
ProcessorDef[] baseConfigs,
CompilerDef specificConfig,
TargetDef targetPlatform,
VersionInfo versionInfo) |
ProcessorConfiguration |
createConfiguration(CCTask task,
LinkType linkType,
ProcessorDef[] baseConfigs,
ProcessorDef specificConfig,
TargetDef targetPlatform,
VersionInfo versionInfo)
Returns the compiler configuration for
|
protected abstract Parser |
createParser(java.io.File sourceFile) |
protected java.lang.String |
getBaseOutputName(java.lang.String inputFile) |
java.lang.String[] |
getOutputFileNames(java.lang.String inputFile,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
|
DependencyInfo |
parseIncludes(CCTask task,
java.io.File source,
java.io.File[] includePath,
java.io.File[] sysIncludePath,
java.io.File[] envIncludePath,
java.io.File baseDir,
java.lang.String includePathIdentifier)
Returns dependency info for the specified source file
|
protected boolean |
resolveInclude(java.lang.String includeName,
java.io.File[] includePath,
java.util.Vector onThisPath) |
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bid, changeEnvironment, getIdentifier, getLinker
protected AbstractCompiler(java.lang.String[] sourceExtensions, java.lang.String[] headerExtensions, java.lang.String outputSuffix)
protected boolean canParse(java.io.File sourceFile)
protected abstract CompilerConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, CompilerDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
public ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef[] baseConfigs, ProcessorDef specificConfig, TargetDef targetPlatform, VersionInfo versionInfo)
Processor
createConfiguration
in interface Processor
baseConfigs
- When specificConfig corresponds to a specificConfig
- A protected abstract Parser createParser(java.io.File sourceFile)
protected java.lang.String getBaseOutputName(java.lang.String inputFile)
public java.lang.String[] getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)
Processor
getOutputFileNames
in interface Processor
inputFile
- input filepublic final DependencyInfo parseIncludes(CCTask task, java.io.File source, java.io.File[] includePath, java.io.File[] sysIncludePath, java.io.File[] envIncludePath, java.io.File baseDir, java.lang.String includePathIdentifier)
task
- task for any diagnostic outputsource
- file to be parsedincludePath
- include path to be used to resolve included filessysIncludePath
- sysinclude path from build file, files resolved using
sysInclude path will not participate in dependency analysisenvIncludePath
- include path from environment variable, files resolved with
envIncludePath will not participate in dependency analysisbaseDir
- used to produce relative paths in DependencyInfoincludePathIdentifier
- used to distinguish DependencyInfo's from different include
path settingsprotected boolean resolveInclude(java.lang.String includeName, java.io.File[] includePath, java.util.Vector onThisPath)
Copyright ? 2001-2012 Ant-Contrib project. All Rights Reserved.