|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmycompiler.MyCompiler
public class MyCompiler
| Field Summary | |
|---|---|
static int |
ALL_INFO
|
static int |
DebugLevel
|
static int |
GENERAL_INFO
|
static int |
NO_INFO
|
static int |
NO_LINENUMBER
|
static int |
PARSER_INFO
|
static int |
SCANNER_INFO
|
static int |
SEMANTIC_INFO
|
static int |
TYPE_ANALYSIS_INFO
|
static int |
UNIFICATION_INFO
|
| Method Summary | |
|---|---|
void |
codeGeneration()
Author: J�rg B�uerle Generiert den Bytecode und das Class-File f�r den Syntaxbaum. |
static MyCompilerAPI |
getAPI()
Author: J�rg B�uerle Stellt eine neue Instanz der CompilerAPI zur Verf�gung. |
SourceFile |
getSyntaxTree()
Author: J�rg B�uerle Liefert den geparsten Syntaxbaume zur�ck. |
void |
init()
Author: J�rg B�uerle Initialisiert den Compiler |
static void |
main(java.lang.String[] args)
Author: J�rg B�uerle Die Main-Funktion, �ber die der Compiler auch per Konsole gestartet werden kann. |
void |
parse(java.io.File file)
Author: J�rg B�uerle Ruft die Parse-Methode. |
void |
parse(java.lang.String srcCode)
Author: J�rg B�uerle Ruft die Parse-Methode. |
static void |
printDebugInfo(java.lang.String str1,
int nLevel)
Author: J�rg B�uerle Von meinen Vorg�ngern eingesetzte Methode zur Ausgabe von diferenzierten Debug-Ausgaben. |
void |
semanticCheck()
Author: J�rg B�uerle Ruft �ber SourceFile.sc_check(false)
den alten Semantik-Check ohne Typrekonstruktion auf. |
boolean |
setDebugLevel(int debugLevel)
Author: J�rg B�uerle Setzt den Debug-Level |
de.dhbwstuttgart.typeinference.Menge<CTypeReconstructionResult> |
typeReconstruction()
Author: J�rg B�uerle Ruft den Typrekonstruktionsalgorithmus auf. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_INFO
public static final int ALL_INFO
public static final int GENERAL_INFO
public static final int SCANNER_INFO
public static final int PARSER_INFO
public static final int SEMANTIC_INFO
public static final int TYPE_ANALYSIS_INFO
public static final int UNIFICATION_INFO
public static final int NO_LINENUMBER
public static int DebugLevel
| Method Detail |
|---|
public static MyCompilerAPI getAPI()
public static void printDebugInfo(java.lang.String str1,
int nLevel)
str1 - Die Debug-AusgabenLevel - Der DebugLevelpublic void init()
init in interface MyCompilerAPIpublic boolean setDebugLevel(int debugLevel)
setDebugLevel in interface MyCompilerAPIdebugLevel - Debug-Level
true wenn ein korrekter Wert �bergeben worden ist, false sonst.
public void parse(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException,
JavaParser.yyException
parse in interface MyCompilerAPIfile - Die Quellcode-Datei
java.io.FileNotFoundException - Wenn die Quellcode-Datei nicht existiert.
java.io.IOException - Wenn was schief l�uft.
JavaParser.yyException - Wenn ein Fehler beim Parsen auftritt.
public void parse(java.lang.String srcCode)
throws java.io.IOException,
JavaParser.yyException
parse in interface MyCompilerAPIsrcCode - Der zu parsende Quellcode
java.io.IOException - Wenn was schief l�uft.
JavaParser.yyException - Wenn ein Fehler beim Parsen auftritt.
public void semanticCheck()
throws java.lang.NullPointerException,
SCException
SourceFile.sc_check(false)
den alten Semantik-Check ohne Typrekonstruktion auf.
semanticCheck in interface MyCompilerAPIjava.lang.NullPointerException - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.
SCException - Wenn ein Fehler beim Semantik-Check auftritt.
public de.dhbwstuttgart.typeinference.Menge<CTypeReconstructionResult> typeReconstruction()
throws java.lang.NullPointerException,
CTypeReconstructionException
typeReconstruction in interface MyCompilerAPIjava.lang.NullPointerException - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.
CTypeReconstructionException - Wenn ein Fehler bei der Typrekonstruktion auftritt.
public SourceFile getSyntaxTree()
throws java.lang.NullPointerException
getSyntaxTree in interface MyCompilerAPIjava.lang.NullPointerException - Wenn noch keine Syntaxb�ume berechnet worden sind.
public void codeGeneration()
throws java.lang.NullPointerException
codeGeneration in interface MyCompilerAPIjava.lang.NullPointerException - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.public static void main(java.lang.String[] args)
args - Die Konsolen-Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||