|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.cs.drjava.model.compiler.CompilerErrorModel
Contains the CompilerErrors for a particular file after a compile has ended.
Field Summary | |
private Document |
_document
|
private CompilerError[] |
_errors
|
private CompilerError[] |
_errorsWithoutPositions
|
private File |
_file
|
private Position[] |
_positions
|
Constructor Summary | |
CompilerErrorModel()
Constructs a CompilerErrorModel with no errors or files. |
|
CompilerErrorModel(CompilerError[] errors,
Document doc,
File file)
Constructs a new CompilerErrorModel to be maintained by a particular OpenDefinitionsDocument. |
Method Summary | |
private void |
_createPositionsArray()
Create array of positions where each error occurred. |
private void |
_groupErrors(CompilerError[] errors)
Groups errors into those with and without positions, and creates the corresponding array of positions. |
Document |
getDocument()
Returns the document associated with this error model. |
CompilerError[] |
getErrorsWithoutPositions()
Returns the array of errors without positions. |
CompilerError[] |
getErrorsWithPositions()
Returns the array of errors with positions. |
File |
getFile()
Returns the File associated with this error model. |
Position[] |
getPositions()
Returns the array of positions. |
String |
toString()
Prints out this model's errors. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private CompilerError[] _errors
private CompilerError[] _errorsWithoutPositions
private Position[] _positions
private Document _document
private File _file
Constructor Detail |
public CompilerErrorModel(CompilerError[] errors, Document doc, File file)
doc
- Document containing the errorsfile
- File containing the errors, or nullpublic CompilerErrorModel()
Method Detail |
public CompilerError[] getErrorsWithPositions()
public CompilerError[] getErrorsWithoutPositions()
public Position[] getPositions()
public Document getDocument()
public File getFile()
private void _groupErrors(CompilerError[] errors)
private void _createPositionsArray()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |