|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.core.dom.Message
public class Message
Error message used to report potential errors found during the AST parsing or name resolution. Instances of this class are immutable. Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
Message(java.lang.String message,
int startPosition)
Creates a message. |
|
Message(java.lang.String message,
int startPosition,
int length)
Creates a message. |
Method Summary | |
---|---|
int |
getLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this message ends. |
java.lang.String |
getMessage()
Returns the localized message. |
int |
getSourcePosition()
Deprecated. Use getStartPosition() instead. |
int |
getStartPosition()
Returns the character index into the original source file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message(java.lang.String message, int startPosition)
message
- the localized message reported by the compilerstartPosition
- the 0-based character index into the
original source file, or -1
if no source position
information is to be recorded for this message
java.lang.IllegalArgumentException
- if the message is null
java.lang.IllegalArgumentException
- if the startPosition is lower than -1.public Message(java.lang.String message, int startPosition, int length)
message
- the localized message reported by the compilerstartPosition
- the 0-based character index into the
original source file, or -1
if no source position
information is to be recorded for this messagelength
- the length in character of the original source file indicating
where the source fragment corresponding to this message ends. 0 or a negative number
if none. A negative number will be converted to a 0-length.
java.lang.IllegalArgumentException
- if the message is null
java.lang.IllegalArgumentException
- if the startPosition is lower than -1.Method Detail |
---|
public java.lang.String getMessage()
public int getSourcePosition()
getStartPosition()
instead.
-1
if no source position information is recorded for this
messagegetLength()
public int getStartPosition()
-1
if no source position information is recorded for this
messagegetLength()
public int getLength()
0
if no source length information is recorded for this messagegetStartPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |