org.ourgrid.common.spec.main
Interface Compiler

All Known Implementing Classes:
CommonCompiler

public interface Compiler

This is the compiler entity. It is the responsable for manage the other internal entities to make the work properly. Created on 16/06/2004


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.
 

Method Detail

compile

void compile(java.lang.String sourceFileName,
             java.lang.String languageType)
             throws CompilerException
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.

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.

getResult

java.util.List getResult()
Its a general form of returning an answer of a compilation.

Returns:
A List object that have to contains the answer object(s). A null return can be returned to signalize a not necessary answer.