public interface Message
Message
interface lets you discover
the following information about a compiler message.
1. getLevel() - Error level: error, warning or info. 2. getPath() - Location. 3. getLine() - Line number. 4. getColumn() - Column number. 5. toString() - Message string.The
Message.toString()
method returns the message text.Modifier and Type | Field and Description |
---|---|
static String |
ERROR
Indicates that the severity of this
Message is "error ". |
static String |
INFO
Indicates that the severity of this
Message is "info ". |
static String |
WARNING
Indicates that the severity of this
Message is "warning ". |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the column number of the file that contains the error.
|
String |
getLevel()
Returns the compiler message severity level.
|
int |
getLine()
Returns the line number of the file that contains the error.
|
String |
getPath()
Returns the location of the file that contains the error.
|
String |
toString()
Returns the message.
|
static final String ERROR
Message
is "error
".static final String WARNING
Message
is "warning
".static final String INFO
Message
is "info
".String getLevel()
String getPath()
null
if the path is not applicable.int getLine()
-1
if the line number is not applicable.int getColumn()
-1
if the column number is not applicable.Copyright © 2016 The Apache Software Foundation. All rights reserved.