|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserNotice
A notice (e.g., a warning or error) from a parser.
Field Summary | |
---|---|
static int |
ERROR
Indicates an error notice. |
static int |
INFO
Indicates an info notice. |
static int |
WARNING
Indicates a warning notice. |
Method Summary | |
---|---|
boolean |
containsPosition(int pos)
Returns whether this parser notice contains the specified location in the document. |
Color |
getColor()
Returns the color to use when painting this notice. |
int |
getLength()
Returns the length of the code the message is concerned with. |
int |
getLevel()
Returns the level of this notice. |
int |
getLine()
Returns the line number the notice is about. |
String |
getMessage()
Returns the message from the parser. |
int |
getOffset()
Returns the offset of the code the message is concerned with. |
Parser |
getParser()
Returns the parser that created this message. |
boolean |
getShowInEditor()
Whether a squiggle underline should be drawn in the editor for this notice. |
String |
getToolTipText()
Returns the tooltip text to display for this notice. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final int INFO
static final int WARNING
static final int ERROR
Method Detail |
---|
boolean containsPosition(int pos)
pos
- The position in the document.
false
if getOffset()
returns
-1
.Color getColor()
int getLength()
-1
if unknown.getOffset()
,
getLine()
int getLevel()
INFO
, WARNING
OR ERROR
.int getLine()
String getMessage()
int getOffset()
-1
if unknown.getLength()
,
getLine()
Parser getParser()
boolean getShowInEditor()
String getToolTipText()
getMessage()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |