org.ourgrid.common.spec.main
Class CommonCompiler
java.lang.Object
org.ourgrid.common.spec.main.CommonCompiler
- All Implemented Interfaces:
- Compiler
public class CommonCompiler
- extends java.lang.Object
- implements Compiler
- See Also:
Compiler
Method Summary |
void |
compile(java.lang.String sourceFileName,
java.lang.String languageType)
Initialize the compile process for a given source file. |
java.util.List |
getResult()
Its a general form of returning an answer of a compilation. |
static java.lang.String |
getSourceParentDir()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDF_TYPE
public static final java.lang.String JDF_TYPE
- See Also:
- Constant Field Values
GDF_TYPE
public static final java.lang.String GDF_TYPE
- See Also:
- Constant Field Values
SDF_TYPE
public static final java.lang.String SDF_TYPE
- See Also:
- Constant Field Values
CommonCompiler
public CommonCompiler()
- Initialize the object.
compile
public void compile(java.lang.String sourceFileName,
java.lang.String languageType)
throws CompilerException
- Description copied from interface:
Compiler
- Initialize the compile process for a given source file. It will check the
source syntactical formation and build a answer to the source as defined
at the semantical analyzer.
- Specified by:
compile
in interface Compiler
- Parameters:
sourceFileName
- The file that contains the source to be compiled.languageType
- Have to be one of the provided language types at the
compiler. ( Check types at the implementor of this interface )
- Throws:
CompilerException
- Thrown when happens any problem. It generally
packs a more specific exception.- See Also:
Compiler.compile(String, String)
getResult
public java.util.List getResult()
- Description copied from interface:
Compiler
- Its a general form of returning an answer of a compilation.
- Specified by:
getResult
in interface Compiler
- Returns:
- A List object that have to contains the answer object(s). A null
return can be returned to signalize a not necessary answer.
- See Also:
Compiler.getResult()
getSourceParentDir
public static java.lang.String getSourceParentDir()
- Returns:
- Returns the parent directory of the source that is been compiled.