public interface ParserNotice extends java.lang.Comparable<ParserNotice>
DefaultParserNotice
限定符和类型 | 字段和说明 |
---|---|
static int |
ERROR
Indicates an error notice.
|
static int |
INFO
Indicates an info notice.
|
static int |
WARNING
Indicates a warning notice.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
containsPosition(int pos)
Returns whether this parser notice contains the specified location
in the document.
|
java.awt.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.
|
java.lang.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.
|
java.lang.String |
getToolTipText()
Returns the tooltip text to display for this notice.
|
static 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
.java.awt.Color getColor()
int getLength()
-1
if unknown.getOffset()
,
getLine()
int getLine()
java.lang.String getMessage()
int getOffset()
-1
if unknown.getLength()
,
getLine()
Parser getParser()
boolean getShowInEditor()
java.lang.String getToolTipText()
getMessage()
.