Package org.aspectj.bridge
Schnittstelle IMessageHolder
- Alle Superschnittstellen:
IMessageHandler
- Alle bekannten Implementierungsklassen:
MessageHandler
,WeavingAdaptor.WeavingAdaptorMessageHolder
Hold and query a collection of messages.
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final boolean
value for orGreater parameterstatic final boolean
value for orGreater parameterVon Schnittstelle geerbte Felder org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Clear any messages.IMessage[]
getMessages
(IMessage.Kind kind, boolean orGreater) Get all messages or those of a specific kind.boolean
hasAnyMessage
(IMessage.Kind kind, boolean orGreater) Tell whether this holder has any message of this kind (optionally or greater).int
numMessages
(IMessage.Kind kind, boolean orGreater) Count the messages currently held by this holder.Von Schnittstelle geerbte Methoden org.aspectj.bridge.IMessageHandler
dontIgnore, handleMessage, ignore, isIgnoring
-
Felddetails
-
ORGREATER
static final boolean ORGREATERvalue for orGreater parameter- Siehe auch:
-
EQUAL
static final boolean EQUALvalue for orGreater parameter- Siehe auch:
-
-
Methodendetails
-
hasAnyMessage
Tell whether this holder has any message of this kind (optionally or greater).- Parameter:
kind
- the IMessage.Kind to check for - accept any if nullorGreater
- if true, also any greater than the target kind as determined by IMessage.Kind.COMPARATOR- Gibt zurück:
- true if this holder has any message of this kind, or if orGreater and any message has a greater kind, as determined by IMessage.Kind.COMPARATOR
-
numMessages
Count the messages currently held by this holder. Pass null to get all kinds.- Parameter:
kind
- the IMessage.Kind expected, or null for all messagesorGreater
- if true, also any greater than the target kind as determined by IMessage.Kind.COMPARATOR- Gibt zurück:
- number of IMessage held (now) by this holder
-
getMessages
Get all messages or those of a specific kind. Pass null to get all kinds.- Parameter:
kind
- the IMessage.Kind expected, or null for all messagesorGreater
- if true, also get any greater than the target kind as determined by IMessage.Kind.COMPARATOR- Gibt zurück:
- IMessage[] of messages of the right kind, or IMessage.NONE
-
getUnmodifiableListView
- Gibt zurück:
- unmodifiable List view of underlying collection of IMessage
-
clearMessages
Clear any messages.- Löst aus:
UnsupportedOperationException
- if message list is read-only
-