public interface ParserNotice extends Comparable<ParserNotice>
DefaultParserNotice| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Indicates an error notice.
|
static int |
INFO
Indicates an info notice.
|
static int |
WARNING
Indicates a warning notice.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
compareTostatic final int INFO
static final int WARNING
static final int ERROR
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 getLine()
String getMessage()
int getOffset()
-1 if unknown.getLength(),
getLine()Parser getParser()
boolean getShowInEditor()
String getToolTipText()
getMessage().