Package org.aspectj.bridge
Schnittstelle IMessage
- Alle bekannten Implementierungsklassen:
LintMessage
,Message
,WeaveMessage
public interface IMessage
Wrap message with any associated throwable or source location.
-
Verschachtelte Klassen - Übersicht
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final IMessage.Kind
static final IMessage.Kind
static final IMessage.Kind
static final IMessage.Kind
static final IMessage.Kind
static final List
<IMessage.Kind> list of Kind in precedence order. 0 is less than IMessage.Kind#COMPARATOR.compareTo(KINDS.get(i), KINDS.get(i + 1))static final IMessage[]
no messagesstatic final IMessage.Kind
static final IMessage.Kind
static final IMessage.Kind
static final IMessage.Kind
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Caller can verify if this message came about because of a DEOWReturn a List ofISourceLocation
instances that indicate additional source locations relevent to this message as specified by the message creator.int
getID()
Return the ID of the message where applicable, see IProblem for list of valid IDsgetKind()
int
Return the end position of the problem (inclusive), or -1 if unknown.int
Return the start position of the problem (inclusive), or -1 if unknown.boolean
isAbort()
boolean
isDebug()
boolean
isError()
boolean
isFailed()
boolean
isInfo()
boolean
boolean
isUsage()
boolean
-
Felddetails
-
RA_IMessage
no messages -
WEAVEINFO
-
INFO
-
USAGE
-
DEBUG
-
TASKTAG
-
WARNING
-
ERROR
-
FAIL
-
ABORT
-
KINDS
list of Kind in precedence order. 0 is less than IMessage.Kind#COMPARATOR.compareTo(KINDS.get(i), KINDS.get(i + 1))
-
-
Methodendetails
-
getMessage
String getMessage()- Gibt zurück:
- non-null String with simple message
-
getKind
IMessage.Kind getKind()- Gibt zurück:
- the kind of this message
-
isError
boolean isError()- Gibt zurück:
- true if this is an error
-
isWarning
boolean isWarning()- Gibt zurück:
- true if this is a warning
-
isDebug
boolean isDebug()- Gibt zurück:
- true if this is an internal debug message
-
isUsage
boolean isUsage()- Gibt zurück:
- true if this is a compiler usage message
-
isInfo
boolean isInfo()- Gibt zurück:
- true if this is information for the user
-
isAbort
boolean isAbort()- Gibt zurück:
- true if the process is aborting
-
isTaskTag
boolean isTaskTag()- Gibt zurück:
- true if this is a task tag message
-
isFailed
boolean isFailed()- Gibt zurück:
- true if something failed
-
getDeclared
boolean getDeclared()Caller can verify if this message came about because of a DEOW -
getID
int getID()Return the ID of the message where applicable, see IProblem for list of valid IDs -
getSourceStart
int getSourceStart()Return the start position of the problem (inclusive), or -1 if unknown. -
getSourceEnd
int getSourceEnd()Return the end position of the problem (inclusive), or -1 if unknown. -
getThrown
Throwable getThrown()- Gibt zurück:
- Throwable associated with this message, or null if none
-
getSourceLocation
ISourceLocation getSourceLocation()- Gibt zurück:
- source location associated with this message, or null if none
-
getDetails
String getDetails()- Gibt zurück:
- Detailed information about the message. For example, for declare error/warning messages this returns information about the corresponding join point's static part.
-
getExtraSourceLocations
List<ISourceLocation> getExtraSourceLocations()Return a List ofISourceLocation
instances that indicate additional source locations relevent to this message as specified by the message creator. The list should not include the primary source location associated with the message which can be obtained fromgetSourceLocation()
.
An example of using extra locations would be in a warning message that flags all shadow locations that will go unmatched due to a pointcut definition being based on a subtype of a defining type.
- Gibt zurück:
- a list of additional source locations
- Siehe auch:
-