Contains the CompilerErrors for a particular file after
a compile has ended.
version: $Id: CompilerErrorModel.java 4255 2007-08-28 19:17:37Z mgricken $
Constructor Summary
public
CompilerErrorModel() Constructs an empty CompilerErrorModel with no errors and a dummy global model.
Constructs a new CompilerErrorModel with specified global model. Performed in DefaultGlobalModel construction
and after compilation has been performed.
Parameters: errors - the list of CompilerError's (or a subclass). Parameters: model - is the model to find documents from
Accessor for errors maintained here.
Parameters: idx - the index of the error to retrieve the error at index idx throws: NullPointerException - if this object was improperly initialized throws: ArrayIndexOutOfBoundsException - if !(0 <= idx < this.getNumErrors())
This method finds and returns the error that is at the given offset
Parameters: odd - the OpenDefinitionsDocument where you want to find the error at the caret Parameters: offset - the offset into the document the CompilerError at the given offset, null if no error corresponds to this location
Checks whether all CompilerErrors contained here are actually warnings. This would indicate that there were no
"real" errors, so output is valid.
false if any error contained here is not a warning, true otherwise