forked from JavaTX/JavaCompilerCore
727 lines
27 KiB
HTML
Executable File
727 lines
27 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<!--NewPage-->
|
||
<HTML>
|
||
<HEAD>
|
||
<!-- Generated by javadoc (build 1.5.0_02) on Tue Jun 21 18:36:56 CEST 2005 -->
|
||
<TITLE>
|
||
MyCompiler
|
||
</TITLE>
|
||
|
||
<META NAME="keywords" CONTENT="mycompiler.MyCompiler class">
|
||
|
||
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
||
|
||
<SCRIPT type="text/javascript">
|
||
function windowTitle()
|
||
{
|
||
parent.document.title="MyCompiler";
|
||
}
|
||
</SCRIPT>
|
||
<NOSCRIPT>
|
||
</NOSCRIPT>
|
||
|
||
</HEAD>
|
||
|
||
<BODY BGCOLOR="white" onload="windowTitle();">
|
||
|
||
|
||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
<A NAME="navbar_top"><!-- --></A>
|
||
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
<TR>
|
||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
<TR ALIGN="center" VALIGN="top">
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MyCompiler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
</TR>
|
||
</TABLE>
|
||
</TD>
|
||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
</EM>
|
||
</TD>
|
||
</TR>
|
||
|
||
<TR>
|
||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
PREV CLASS
|
||
<A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler"><B>NEXT CLASS</B></A></FONT></TD>
|
||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
<A HREF="../index.html?mycompiler/MyCompiler.html" target="_top"><B>FRAMES</B></A>
|
||
<A HREF="MyCompiler.html" target="_top"><B>NO FRAMES</B></A>
|
||
<SCRIPT type="text/javascript">
|
||
<!--
|
||
if(window==top) {
|
||
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
}
|
||
//-->
|
||
</SCRIPT>
|
||
<NOSCRIPT>
|
||
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||
</NOSCRIPT>
|
||
|
||
|
||
</FONT></TD>
|
||
</TR>
|
||
<TR>
|
||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
</TR>
|
||
</TABLE>
|
||
<A NAME="skip-navbar_top"></A>
|
||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
||
<HR>
|
||
<!-- ======== START OF CLASS DATA ======== -->
|
||
<H2>
|
||
<FONT SIZE="-1">
|
||
mycompiler</FONT>
|
||
<BR>
|
||
Class MyCompiler</H2>
|
||
<PRE>
|
||
java.lang.Object
|
||
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>mycompiler.MyCompiler</B>
|
||
</PRE>
|
||
<DL>
|
||
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></DD>
|
||
</DL>
|
||
<HR>
|
||
<DL>
|
||
<DT><PRE>public class <B>MyCompiler</B><DT>extends java.lang.Object<DT>implements <A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></DL>
|
||
</PRE>
|
||
|
||
<P>
|
||
<HR>
|
||
|
||
<P>
|
||
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
||
<A NAME="field_summary"><!-- --></A>
|
||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
<B>Field Summary</B></FONT></TH>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#ALL_INFO">ALL_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#DebugLevel">DebugLevel</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#GENERAL_INFO">GENERAL_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#NO_INFO">NO_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#NO_LINENUMBER">NO_LINENUMBER</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#PARSER_INFO">PARSER_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#SCANNER_INFO">SCANNER_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#SEMANTIC_INFO">SEMANTIC_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#TYPE_ANALYSIS_INFO">TYPE_ANALYSIS_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static int</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#UNIFICATION_INFO">UNIFICATION_INFO</A></B></CODE>
|
||
|
||
<BR>
|
||
</TD>
|
||
</TR>
|
||
</TABLE>
|
||
|
||
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
||
<A NAME="method_summary"><!-- --></A>
|
||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
<B>Method Summary</B></FONT></TH>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#codeGeneration()">codeGeneration</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Generiert den Bytecode und das Class-File f<>r den Syntaxbaum.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static <A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#getAPI()">getAPI</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Stellt eine neue Instanz der CompilerAPI zur Verf<72>gung.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> <A HREF="../mycompiler/SourceFile.html" title="class in mycompiler">SourceFile</A></CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#getSyntaxTree()">getSyntaxTree</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Liefert den geparsten Syntaxbaume zur<75>ck.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#init()">init</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Initialisiert den Compiler</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Die Main-Funktion, <20>ber die der Compiler auch per Konsole gestartet
|
||
werden kann.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#parse(java.io.File)">parse</A></B>(java.io.File file)</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Ruft die Parse-Methode.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#parse(java.lang.String)">parse</A></B>(java.lang.String srcCode)</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Ruft die Parse-Methode.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE>static void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#printDebugInfo(java.lang.String, int)">printDebugInfo</A></B>(java.lang.String str1,
|
||
int nLevel)</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Von meinen Vorg<72>ngern eingesetzte Methode zur Ausgabe von
|
||
diferenzierten Debug-Ausgaben.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> void</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#semanticCheck()">semanticCheck</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Ruft <20>ber <code>SourceFile.sc_check(false)</code>
|
||
den alten Semantik-Check ohne Typrekonstruktion auf.</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> boolean</CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#setDebugLevel(int)">setDebugLevel</A></B>(int debugLevel)</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Setzt den Debug-Level</TD>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
<CODE> de.dhbwstuttgart.typeinference.Menge<<A HREF="../mycompiler/mytypereconstruction/CTypeReconstructionResult.html" title="class in mycompiler.mytypereconstruction">CTypeReconstructionResult</A>></CODE></FONT></TD>
|
||
<TD><CODE><B><A HREF="../mycompiler/MyCompiler.html#typeReconstruction()">typeReconstruction</A></B>()</CODE>
|
||
|
||
<BR>
|
||
Author: J<>rg B<>uerle<br/>
|
||
Ruft den Typrekonstruktionsalgorithmus auf.</TD>
|
||
</TR>
|
||
</TABLE>
|
||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||
</TR>
|
||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
||
</TR>
|
||
</TABLE>
|
||
|
||
<P>
|
||
|
||
<!-- ============ FIELD DETAIL =========== -->
|
||
|
||
<A NAME="field_detail"><!-- --></A>
|
||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
<B>Field Detail</B></FONT></TH>
|
||
</TR>
|
||
</TABLE>
|
||
|
||
<A NAME="NO_INFO"><!-- --></A><H3>
|
||
NO_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>NO_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.NO_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="ALL_INFO"><!-- --></A><H3>
|
||
ALL_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>ALL_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.ALL_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="GENERAL_INFO"><!-- --></A><H3>
|
||
GENERAL_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>GENERAL_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.GENERAL_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="SCANNER_INFO"><!-- --></A><H3>
|
||
SCANNER_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>SCANNER_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.SCANNER_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="PARSER_INFO"><!-- --></A><H3>
|
||
PARSER_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>PARSER_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.PARSER_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="SEMANTIC_INFO"><!-- --></A><H3>
|
||
SEMANTIC_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>SEMANTIC_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.SEMANTIC_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="TYPE_ANALYSIS_INFO"><!-- --></A><H3>
|
||
TYPE_ANALYSIS_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>TYPE_ANALYSIS_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.TYPE_ANALYSIS_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="UNIFICATION_INFO"><!-- --></A><H3>
|
||
UNIFICATION_INFO</H3>
|
||
<PRE>
|
||
public static final int <B>UNIFICATION_INFO</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.UNIFICATION_INFO">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="NO_LINENUMBER"><!-- --></A><H3>
|
||
NO_LINENUMBER</H3>
|
||
<PRE>
|
||
public static final int <B>NO_LINENUMBER</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mycompiler.MyCompiler.NO_LINENUMBER">Constant Field Values</A></DL>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="DebugLevel"><!-- --></A><H3>
|
||
DebugLevel</H3>
|
||
<PRE>
|
||
public static int <B>DebugLevel</B></PRE>
|
||
<DL>
|
||
<DL>
|
||
</DL>
|
||
</DL>
|
||
|
||
<!-- ============ METHOD DETAIL ========== -->
|
||
|
||
<A NAME="method_detail"><!-- --></A>
|
||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
<B>Method Detail</B></FONT></TH>
|
||
</TR>
|
||
</TABLE>
|
||
|
||
<A NAME="getAPI()"><!-- --></A><H3>
|
||
getAPI</H3>
|
||
<PRE>
|
||
public static <A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A> <B>getAPI</B>()</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Stellt eine neue Instanz der CompilerAPI zur Verf<72>gung.
|
||
Diese Methode sollte von der IDE aus aufgerufen werden,
|
||
um eine Quellcode-Datei zu kompilieren.
|
||
<P>
|
||
<DD><DL>
|
||
</DL>
|
||
</DD>
|
||
<DD><DL>
|
||
|
||
<DT><B>Returns:</B><DD>Die Compiler-API</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="printDebugInfo(java.lang.String, int)"><!-- --></A><H3>
|
||
printDebugInfo</H3>
|
||
<PRE>
|
||
public static void <B>printDebugInfo</B>(java.lang.String str1,
|
||
int nLevel)</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Von meinen Vorg<72>ngern eingesetzte Methode zur Ausgabe von
|
||
diferenzierten Debug-Ausgaben.
|
||
<P>
|
||
<DD><DL>
|
||
</DL>
|
||
</DD>
|
||
<DD><DL>
|
||
<DT><B>Parameters:</B><DD><CODE>str1</CODE> - Die Debug-Ausgabe<DD><CODE>nLevel</CODE> - Der DebugLevel</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="init()"><!-- --></A><H3>
|
||
init</H3>
|
||
<PRE>
|
||
public void <B>init</B>()</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Initialisiert den Compiler
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#init()">init</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="setDebugLevel(int)"><!-- --></A><H3>
|
||
setDebugLevel</H3>
|
||
<PRE>
|
||
public boolean <B>setDebugLevel</B>(int debugLevel)</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Setzt den Debug-Level
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#setDebugLevel(int)">setDebugLevel</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
<DT><B>Parameters:</B><DD><CODE>debugLevel</CODE> - Debug-Level
|
||
<DT><B>Returns:</B><DD><code>true</code> wenn ein korrekter Wert <20>bergeben worden ist, <code>false</code> sonst.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="parse(java.io.File)"><!-- --></A><H3>
|
||
parse</H3>
|
||
<PRE>
|
||
public void <B>parse</B>(java.io.File file)
|
||
throws java.io.FileNotFoundException,
|
||
java.io.IOException,
|
||
<A HREF="../mycompiler/myparser/JavaParser.yyException.html" title="class in mycompiler.myparser">JavaParser.yyException</A></PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Ruft die Parse-Methode.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#parse(java.io.File)">parse</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
<DT><B>Parameters:</B><DD><CODE>file</CODE> - Die Quellcode-Datei
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.io.FileNotFoundException</CODE> - Wenn die Quellcode-Datei nicht existiert.
|
||
<DD><CODE>java.io.IOException</CODE> - Wenn was schief l<>uft.
|
||
<DD><CODE>JavaParser.yyException</CODE> - Wenn ein Fehler beim Parsen auftritt.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="parse(java.lang.String)"><!-- --></A><H3>
|
||
parse</H3>
|
||
<PRE>
|
||
public void <B>parse</B>(java.lang.String srcCode)
|
||
throws java.io.IOException,
|
||
<A HREF="../mycompiler/myparser/JavaParser.yyException.html" title="class in mycompiler.myparser">JavaParser.yyException</A></PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Ruft die Parse-Methode.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#parse(java.lang.String)">parse</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
<DT><B>Parameters:</B><DD><CODE>srcCode</CODE> - Der zu parsende Quellcode
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.io.IOException</CODE> - Wenn was schief l<>uft.
|
||
<DD><CODE>JavaParser.yyException</CODE> - Wenn ein Fehler beim Parsen auftritt.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="semanticCheck()"><!-- --></A><H3>
|
||
semanticCheck</H3>
|
||
<PRE>
|
||
public void <B>semanticCheck</B>()
|
||
throws java.lang.NullPointerException,
|
||
<A HREF="../mycompiler/myexception/SCException.html" title="class in mycompiler.myexception">SCException</A></PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Ruft <20>ber <code>SourceFile.sc_check(false)</code>
|
||
den alten Semantik-Check ohne Typrekonstruktion auf.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#semanticCheck()">semanticCheck</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.lang.NullPointerException</CODE> - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.
|
||
<DD><CODE><A HREF="../mycompiler/myexception/SCException.html" title="class in mycompiler.myexception">SCException</A></CODE> - Wenn ein Fehler beim Semantik-Check auftritt.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="typeReconstruction()"><!-- --></A><H3>
|
||
typeReconstruction</H3>
|
||
<PRE>
|
||
public de.dhbwstuttgart.typeinference.Menge<<A HREF="../mycompiler/mytypereconstruction/CTypeReconstructionResult.html" title="class in mycompiler.mytypereconstruction">CTypeReconstructionResult</A>> <B>typeReconstruction</B>()
|
||
throws java.lang.NullPointerException,
|
||
<A HREF="../mycompiler/myexception/CTypeReconstructionException.html" title="class in mycompiler.myexception">CTypeReconstructionException</A></PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Ruft den Typrekonstruktionsalgorithmus auf.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#typeReconstruction()">typeReconstruction</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
|
||
<DT><B>Returns:</B><DD>Die Menge aller m<>glichen Typkombinationen
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.lang.NullPointerException</CODE> - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.
|
||
<DD><CODE><A HREF="../mycompiler/myexception/CTypeReconstructionException.html" title="class in mycompiler.myexception">CTypeReconstructionException</A></CODE> - Wenn ein Fehler bei der Typrekonstruktion auftritt.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="getSyntaxTree()"><!-- --></A><H3>
|
||
getSyntaxTree</H3>
|
||
<PRE>
|
||
public <A HREF="../mycompiler/SourceFile.html" title="class in mycompiler">SourceFile</A> <B>getSyntaxTree</B>()
|
||
throws java.lang.NullPointerException</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Liefert den geparsten Syntaxbaume zur<75>ck.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#getSyntaxTree()">getSyntaxTree</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
|
||
<DT><B>Returns:</B><DD>Die Syntaxb<78>ume
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.lang.NullPointerException</CODE> - Wenn noch keine Syntaxb<78>ume berechnet worden sind.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="codeGeneration()"><!-- --></A><H3>
|
||
codeGeneration</H3>
|
||
<PRE>
|
||
public void <B>codeGeneration</B>()
|
||
throws java.lang.NullPointerException</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Generiert den Bytecode und das Class-File f<>r den Syntaxbaum.
|
||
<P>
|
||
<DD><DL>
|
||
<DT><B>Specified by:</B><DD><CODE><A HREF="../mycompiler/MyCompilerAPI.html#codeGeneration()">codeGeneration</A></CODE> in interface <CODE><A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler">MyCompilerAPI</A></CODE></DL>
|
||
</DD>
|
||
<DD><DL>
|
||
|
||
<DT><B>Throws:</B>
|
||
<DD><CODE>java.lang.NullPointerException</CODE> - Wenn noch kein abstrakter Syntaxbaum vorhanden ist.</DL>
|
||
</DD>
|
||
</DL>
|
||
<HR>
|
||
|
||
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
||
main</H3>
|
||
<PRE>
|
||
public static void <B>main</B>(java.lang.String[] args)</PRE>
|
||
<DL>
|
||
<DD>Author: J<>rg B<>uerle<br/>
|
||
Die Main-Funktion, <20>ber die der Compiler auch per Konsole gestartet
|
||
werden kann.
|
||
<P>
|
||
<DD><DL>
|
||
</DL>
|
||
</DD>
|
||
<DD><DL>
|
||
<DT><B>Parameters:</B><DD><CODE>args</CODE> - Die Konsolen-Parameter</DL>
|
||
</DD>
|
||
</DL>
|
||
<!-- ========= END OF CLASS DATA ========= -->
|
||
<HR>
|
||
|
||
|
||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
<A NAME="navbar_bottom"><!-- --></A>
|
||
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
<TR>
|
||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
<TR ALIGN="center" VALIGN="top">
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MyCompiler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
</TR>
|
||
</TABLE>
|
||
</TD>
|
||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
</EM>
|
||
</TD>
|
||
</TR>
|
||
|
||
<TR>
|
||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
PREV CLASS
|
||
<A HREF="../mycompiler/MyCompilerAPI.html" title="interface in mycompiler"><B>NEXT CLASS</B></A></FONT></TD>
|
||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
<A HREF="../index.html?mycompiler/MyCompiler.html" target="_top"><B>FRAMES</B></A>
|
||
<A HREF="MyCompiler.html" target="_top"><B>NO FRAMES</B></A>
|
||
<SCRIPT type="text/javascript">
|
||
<!--
|
||
if(window==top) {
|
||
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
}
|
||
//-->
|
||
</SCRIPT>
|
||
<NOSCRIPT>
|
||
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
||
</NOSCRIPT>
|
||
|
||
|
||
</FONT></TD>
|
||
</TR>
|
||
<TR>
|
||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
</TR>
|
||
</TABLE>
|
||
<A NAME="skip-navbar_bottom"></A>
|
||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
||
<HR>
|
||
|
||
</BODY>
|
||
</HTML>
|