|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.ErrorList
public class ErrorList
Maintains list of generated error messages, regardless of source (tokenizing, parsing, assembly, execution).
Field Summary | |
---|---|
static String |
ERROR_MESSAGE_PREFIX
|
static String |
FILENAME_PREFIX
|
static String |
LINE_PREFIX
|
static String |
MESSAGE_SEPARATOR
|
static String |
POSITION_PREFIX
|
static String |
WARNING_MESSAGE_PREFIX
|
Constructor Summary | |
---|---|
ErrorList()
Constructor for ErrorList |
Method Summary | |
---|---|
void |
add(ErrorMessage mess)
Add new error message to end of list. |
void |
add(ErrorMessage mess,
int index)
Add new error message at specified index position. |
int |
errorCount()
Count of number of error messages in list. |
boolean |
errorLimitExceeded()
Check to see if error limit has been exceeded. |
boolean |
errorsOccurred()
Determine whether error has occured or not. |
String |
generateErrorAndWarningReport()
Produce report containing both warnings and errors, warnings first. |
String |
generateErrorReport()
Produce error report. |
String |
generateWarningReport()
Produce warning report. |
int |
getErrorLimit()
Get limit on number of error messages to be generated by one assemble operation. |
ArrayList |
getErrorMessages()
Get ArrayList of error messages. |
int |
warningCount()
Count of number of warning messages in list. |
boolean |
warningsOccurred()
Determine whether warning has occured or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ERROR_MESSAGE_PREFIX
public static final String WARNING_MESSAGE_PREFIX
public static final String FILENAME_PREFIX
public static final String LINE_PREFIX
public static final String POSITION_PREFIX
public static final String MESSAGE_SEPARATOR
Constructor Detail |
---|
public ErrorList()
Method Detail |
---|
public ArrayList getErrorMessages()
public boolean errorsOccurred()
public boolean warningsOccurred()
public void add(ErrorMessage mess)
mess
- ErrorMessage object to be added to end of error list.public void add(ErrorMessage mess, int index)
mess
- ErrorMessage object to be added to end of error list.index
- position in error listpublic int errorCount()
public int warningCount()
public boolean errorLimitExceeded()
public int getErrorLimit()
public String generateErrorReport()
public String generateWarningReport()
public String generateErrorAndWarningReport()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |