Klasse Message
java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.Message
Error message used to report potential errors found during the AST parsing
or name resolution. Instances of this class are immutable.
- Seit:
- 2.0
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Returns the length in characters of the original source file indicating where the source fragment corresponding to this message ends.Returns the localized message.int
Veraltet.int
Returns the character index into the original source file.
-
Konstruktordetails
-
Message
Creates a message.- Parameter:
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- Löst aus:
IllegalArgumentException
- if the message is nullIllegalArgumentException
- if the startPosition is lower than -1.
-
Message
Creates a message.- Parameter:
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.- Löst aus:
IllegalArgumentException
- if the message is nullIllegalArgumentException
- if the startPosition is lower than -1.
-
-
Methodendetails
-
getMessage
Returns the localized message.- Gibt zurück:
- the localized message
-
getSourcePosition
public int getSourcePosition()Veraltet.UsegetStartPosition()
instead.Returns the character index into the original source file.- Gibt zurück:
- the 0-based character index, or
-1
if no source position information is recorded for this message - Siehe auch:
-
getStartPosition
public int getStartPosition()Returns the character index into the original source file.- Gibt zurück:
- the 0-based character index, or
-1
if no source position information is recorded for this message - Siehe auch:
-
getLength
public int getLength()Returns the length in characters of the original source file indicating where the source fragment corresponding to this message ends.- Gibt zurück:
- a length, or
0
if no source length information is recorded for this message - Siehe auch:
-
getStartPosition()
instead.