org.ow2.mind.adl.compilation
Class BasicCompilationCommandFactory.FileProviderCompilerCommand

java.lang.Object
  extended by org.ow2.mind.adl.compilation.BasicCompilationCommandFactory.FileProviderCompilerCommand
All Implemented Interfaces:
CompilationCommand, CompilerCommand
Enclosing class:
BasicCompilationCommandFactory

protected static final class BasicCompilationCommandFactory.FileProviderCompilerCommand
extends java.lang.Object
implements CompilerCommand


Field Summary
protected  java.io.File outputFile
           
protected  java.util.Collection<java.io.File> outputFiles
           
 
Constructor Summary
protected BasicCompilationCommandFactory.FileProviderCompilerCommand(java.io.File outputFile, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 
Method Summary
 CompilerCommand addDebugFlag()
           
 CompilerCommand addDefine(java.lang.String name)
           
 CompilerCommand addDefine(java.lang.String name, java.lang.String value)
           
 CompilerCommand addDependency(java.io.File dependency)
           
 CompilerCommand addFlag(java.lang.String flag)
           
 CompilerCommand addFlags(java.util.Collection<java.lang.String> flags)
           
 CompilerCommand addFlags(java.lang.String... flags)
           
 CompilerCommand addIncludeDir(java.io.File includeDir)
           
 CompilerCommand addIncludeFile(java.io.File includeFile)
           
 boolean exec()
           
 boolean forceExec()
           
 java.lang.String getCommand()
           
 java.lang.String getDescription()
           
 java.io.File getInputFile()
           
 java.util.Collection<java.io.File> getInputFiles()
           
 java.io.File getOutputFile()
           
 java.util.Collection<java.io.File> getOutputFiles()
           
 void prepare()
           
 CompilerCommand setAllDependenciesManaged(boolean dependencyManaged)
           
 void setCommand(java.lang.String command)
           
 CompilerCommand setDependencyOutputFile(java.io.File dependencyOutputFile)
           
 CompilerCommand setInputFile(java.io.File inputFile)
           
 CompilerCommand setOptimizationLevel(java.lang.String level)
           
 CompilerCommand setOutputFile(java.io.File outputFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputFile

protected final java.io.File outputFile

outputFiles

protected final java.util.Collection<java.io.File> outputFiles
Constructor Detail

BasicCompilationCommandFactory.FileProviderCompilerCommand

protected BasicCompilationCommandFactory.FileProviderCompilerCommand(java.io.File outputFile,
                                                                     java.util.Map<java.lang.Object,java.lang.Object> context)
Method Detail

getCommand

public java.lang.String getCommand()
Specified by:
getCommand in interface CompilationCommand

setCommand

public void setCommand(java.lang.String command)
Specified by:
setCommand in interface CompilationCommand

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface CompilationCommand

exec

public boolean exec()
             throws org.objectweb.fractal.adl.ADLException,
                    java.lang.InterruptedException
Specified by:
exec in interface CompilationCommand
Throws:
org.objectweb.fractal.adl.ADLException
java.lang.InterruptedException

prepare

public void prepare()
Specified by:
prepare in interface CompilationCommand

getInputFiles

public java.util.Collection<java.io.File> getInputFiles()
Specified by:
getInputFiles in interface CompilationCommand

getOutputFiles

public java.util.Collection<java.io.File> getOutputFiles()
Specified by:
getOutputFiles in interface CompilationCommand

forceExec

public boolean forceExec()
Specified by:
forceExec in interface CompilationCommand

addDebugFlag

public CompilerCommand addDebugFlag()
Specified by:
addDebugFlag in interface CompilerCommand

addFlag

public CompilerCommand addFlag(java.lang.String flag)
Specified by:
addFlag in interface CompilerCommand

addFlags

public CompilerCommand addFlags(java.util.Collection<java.lang.String> flags)
Specified by:
addFlags in interface CompilerCommand

addFlags

public CompilerCommand addFlags(java.lang.String... flags)
Specified by:
addFlags in interface CompilerCommand

addDefine

public CompilerCommand addDefine(java.lang.String name)
Specified by:
addDefine in interface CompilerCommand

addDefine

public CompilerCommand addDefine(java.lang.String name,
                                 java.lang.String value)
Specified by:
addDefine in interface CompilerCommand

addIncludeDir

public CompilerCommand addIncludeDir(java.io.File includeDir)
Specified by:
addIncludeDir in interface CompilerCommand

addIncludeFile

public CompilerCommand addIncludeFile(java.io.File includeFile)
Specified by:
addIncludeFile in interface CompilerCommand

setOptimizationLevel

public CompilerCommand setOptimizationLevel(java.lang.String level)
Specified by:
setOptimizationLevel in interface CompilerCommand

setOutputFile

public CompilerCommand setOutputFile(java.io.File outputFile)
Specified by:
setOutputFile in interface CompilerCommand

setInputFile

public CompilerCommand setInputFile(java.io.File inputFile)
Specified by:
setInputFile in interface CompilerCommand

getOutputFile

public java.io.File getOutputFile()
Specified by:
getOutputFile in interface CompilerCommand

getInputFile

public java.io.File getInputFile()
Specified by:
getInputFile in interface CompilerCommand

addDependency

public CompilerCommand addDependency(java.io.File dependency)
Specified by:
addDependency in interface CompilerCommand

setAllDependenciesManaged

public CompilerCommand setAllDependenciesManaged(boolean dependencyManaged)
Specified by:
setAllDependenciesManaged in interface CompilerCommand

setDependencyOutputFile

public CompilerCommand setDependencyOutputFile(java.io.File dependencyOutputFile)
Specified by:
setDependencyOutputFile in interface CompilerCommand


Copyright © 2009-2011 OW2. All Rights Reserved.