0da1c5dcca
First commit of the 4.5 version (latest version available)
580 lines
30 KiB
HTML
580 lines
30 KiB
HTML
<!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.6.0_33) on Tue Aug 20 12:19:59 EDT 2013 -->
|
|
<TITLE>
|
|
ErrorMessage
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2013-08-20">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="ErrorMessage";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= 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="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-all.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">
|
|
<A HREF="../mars/ErrorList.html" title="class in mars"><B>PREV CLASS</B></A>
|
|
<A HREF="../mars/Globals.html" title="class in mars"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html?mars/ErrorMessage.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="ErrorMessage.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> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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">
|
|
mars</FONT>
|
|
<BR>
|
|
Class ErrorMessage</H2>
|
|
<PRE>
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>mars.ErrorMessage</B>
|
|
</PRE>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>ErrorMessage</B><DT>extends <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
Represents occurrance of an error detected during tokenizing, assembly or simulation.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>Pete Sanderson</DD>
|
|
</DL>
|
|
<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 boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ERROR">ERROR</A></B></CODE>
|
|
|
|
<BR>
|
|
Constant to indicate this message is error not warning</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#WARNING">WARNING</A></B></CODE>
|
|
|
|
<BR>
|
|
Constant to indicate this message is warning not error</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(boolean, mars.MIPSprogram, int, int, java.lang.String)">ErrorMessage</A></B>(boolean isWarning,
|
|
<A HREF="../mars/MIPSprogram.html" title="class in mars">MIPSprogram</A> sourceMIPSprogram,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</CODE>
|
|
|
|
<BR>
|
|
Constructor for ErrorMessage.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(boolean, java.lang.String, int, int, java.lang.String, java.lang.String)">ErrorMessage</A></B>(boolean isWarning,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> macroExpansionHistory)</CODE>
|
|
|
|
<BR>
|
|
<B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(mars.MIPSprogram, int, int, java.lang.String)">ErrorMessage</A></B>(<A HREF="../mars/MIPSprogram.html" title="class in mars">MIPSprogram</A> sourceMIPSprogram,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</CODE>
|
|
|
|
<BR>
|
|
Constructor for ErrorMessage.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(mars.ProgramStatement, java.lang.String)">ErrorMessage</A></B>(<A HREF="../mars/ProgramStatement.html" title="class in mars">ProgramStatement</A> statement,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</CODE>
|
|
|
|
<BR>
|
|
Constructor for ErrorMessage, to be used for runtime exceptions.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(java.lang.String, int, int, java.lang.String)">ErrorMessage</A></B>(<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</CODE>
|
|
|
|
<BR>
|
|
<B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#ErrorMessage(java.lang.String, int, int, java.lang.String, java.lang.String)">ErrorMessage</A></B>(<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> macroExpansionHistory)</CODE>
|
|
|
|
<BR>
|
|
<B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I></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> <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#getFilename()">getFilename</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Produce name of file containing error.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#getLine()">getLine</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Produce line number of error.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#getMacroExpansionHistory()">getMacroExpansionHistory</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns string describing macro expansion.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#getMessage()">getMessage</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Produce error message.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../mars/ErrorMessage.html#getPosition()">getPosition</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Produce position within erroneous line.</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="../mars/ErrorMessage.html#isWarning()">isWarning</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Determine whether this message represents error or warning.</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.<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></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="WARNING"><!-- --></A><H3>
|
|
WARNING</H3>
|
|
<PRE>
|
|
public static final boolean <B>WARNING</B></PRE>
|
|
<DL>
|
|
<DD>Constant to indicate this message is warning not error
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mars.ErrorMessage.WARNING">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ERROR"><!-- --></A><H3>
|
|
ERROR</H3>
|
|
<PRE>
|
|
public static final boolean <B>ERROR</B></PRE>
|
|
<DL>
|
|
<DD>Constant to indicate this message is error not warning
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#mars.ErrorMessage.ERROR">Constant Field Values</A></DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="ErrorMessage(java.lang.String, int, int, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
<FONT SIZE="-1"><A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
|
|
</FONT>public <B>ErrorMessage</B>(<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</PRE>
|
|
<DL>
|
|
<DD><B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I>
|
|
<P>
|
|
<DD>Constructor for ErrorMessage.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - String containing name of source file in which this error appears.<DD><CODE>line</CODE> - Line number in source program being processed when error occurred.<DD><CODE>position</CODE> - Position within line being processed when error occurred. Normally is starting
|
|
position of source token.<DD><CODE>message</CODE> - String containing appropriate error message.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ErrorMessage(java.lang.String, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
<FONT SIZE="-1"><A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
|
|
</FONT>public <B>ErrorMessage</B>(<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> macroExpansionHistory)</PRE>
|
|
<DL>
|
|
<DD><B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I>
|
|
<P>
|
|
<DD>Constructor for ErrorMessage.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - String containing name of source file in which this error appears.<DD><CODE>line</CODE> - Line number in source program being processed when error occurred.<DD><CODE>position</CODE> - Position within line being processed when error occurred. Normally is starting
|
|
position of source token.<DD><CODE>message</CODE> - String containing appropriate error message.<DD><CODE>macroExpansionHistory</CODE> - </DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ErrorMessage(boolean, java.lang.String, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
<FONT SIZE="-1"><A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
|
|
</FONT>public <B>ErrorMessage</B>(boolean isWarning,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> macroExpansionHistory)</PRE>
|
|
<DL>
|
|
<DD><B>Deprecated.</B> <I>Newer constructors replace the String filename parameter with a MIPSprogram parameter to provide more information.</I>
|
|
<P>
|
|
<DD>Constructor for ErrorMessage.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>isWarning</CODE> - set to WARNING if message is a warning not error, else set to ERROR or omit.<DD><CODE>filename</CODE> - String containing name of source file in which this error appears.<DD><CODE>line</CODE> - Line number in source program being processed when error occurred.<DD><CODE>position</CODE> - Position within line being processed when error occurred. Normally is starting
|
|
position of source token.<DD><CODE>message</CODE> - String containing appropriate error message.<DD><CODE>macroExpansionHistory</CODE> - provided so message for macro can include both definition and usage line numbers</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ErrorMessage(mars.MIPSprogram, int, int, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
public <B>ErrorMessage</B>(<A HREF="../mars/MIPSprogram.html" title="class in mars">MIPSprogram</A> sourceMIPSprogram,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</PRE>
|
|
<DL>
|
|
<DD>Constructor for ErrorMessage. Assumes line number is calculated after any .include files expanded, and
|
|
if there were, it will adjust filename and line number so message reflects original file and line number.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>sourceMIPSprogram</CODE> - MIPSprogram object of source file in which this error appears.<DD><CODE>line</CODE> - Line number in source program being processed when error occurred.<DD><CODE>position</CODE> - Position within line being processed when error occurred. Normally is starting
|
|
position of source token.<DD><CODE>message</CODE> - String containing appropriate error message.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ErrorMessage(boolean, mars.MIPSprogram, int, int, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
public <B>ErrorMessage</B>(boolean isWarning,
|
|
<A HREF="../mars/MIPSprogram.html" title="class in mars">MIPSprogram</A> sourceMIPSprogram,
|
|
int line,
|
|
int position,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</PRE>
|
|
<DL>
|
|
<DD>Constructor for ErrorMessage. Assumes line number is calculated after any .include files expanded, and
|
|
if there were, it will adjust filename and line number so message reflects original file and line number.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>isWarning</CODE> - set to WARNING if message is a warning not error, else set to ERROR or omit.<DD><CODE>sourceMIPSprogram</CODE> - MIPSprogram object of source file in which this error appears.<DD><CODE>line</CODE> - Line number in source program being processed when error occurred.<DD><CODE>position</CODE> - Position within line being processed when error occurred. Normally is starting
|
|
position of source token.<DD><CODE>message</CODE> - String containing appropriate error message.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ErrorMessage(mars.ProgramStatement, java.lang.String)"><!-- --></A><H3>
|
|
ErrorMessage</H3>
|
|
<PRE>
|
|
public <B>ErrorMessage</B>(<A HREF="../mars/ProgramStatement.html" title="class in mars">ProgramStatement</A> statement,
|
|
<A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> message)</PRE>
|
|
<DL>
|
|
<DD>Constructor for ErrorMessage, to be used for runtime exceptions.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>statement</CODE> - The ProgramStatement object for the instruction causing the runtime error<DD><CODE>message</CODE> - String containing appropriate error message.</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="getFilename()"><!-- --></A><H3>
|
|
getFilename</H3>
|
|
<PRE>
|
|
public <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getFilename</B>()</PRE>
|
|
<DL>
|
|
<DD>Produce name of file containing error.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Returns String containing name of source file containing the error.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getLine()"><!-- --></A><H3>
|
|
getLine</H3>
|
|
<PRE>
|
|
public int <B>getLine</B>()</PRE>
|
|
<DL>
|
|
<DD>Produce line number of error.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Returns line number in source program where error occurred.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getPosition()"><!-- --></A><H3>
|
|
getPosition</H3>
|
|
<PRE>
|
|
public int <B>getPosition</B>()</PRE>
|
|
<DL>
|
|
<DD>Produce position within erroneous line.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Returns position within line of source program where error occurred.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMessage()"><!-- --></A><H3>
|
|
getMessage</H3>
|
|
<PRE>
|
|
public <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getMessage</B>()</PRE>
|
|
<DL>
|
|
<DD>Produce error message.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Returns String containing textual error message.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isWarning()"><!-- --></A><H3>
|
|
isWarning</H3>
|
|
<PRE>
|
|
public boolean <B>isWarning</B>()</PRE>
|
|
<DL>
|
|
<DD>Determine whether this message represents error or warning.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Returns true if this message reflects warning, false if error.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMacroExpansionHistory()"><!-- --></A><H3>
|
|
getMacroExpansionHistory</H3>
|
|
<PRE>
|
|
public <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getMacroExpansionHistory</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns string describing macro expansion. Empty string if none.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>string describing macro expansion</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="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-all.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">
|
|
<A HREF="../mars/ErrorList.html" title="class in mars"><B>PREV CLASS</B></A>
|
|
<A HREF="../mars/Globals.html" title="class in mars"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../index.html?mars/ErrorMessage.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="ErrorMessage.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> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
|
|
</BODY>
|
|
</HTML>
|