Class AjdeCoreMessageHandlerAdapter
java.lang.Object
org.aspectj.ajde.core.internal.AjdeCoreMessageHandlerAdapter
- All Implemented Interfaces:
IMessageHandler
Enables the messages from the compiler/weaver to be passed on
to the tool's implementation so they can handle it as they wish
-
Field Summary
Fields inherited from interface IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROWModifier and TypeFieldDescriptionstatic final IMessageHandlerprint all to System.err and throw AbortException on failure or abort messagesstatic final IMessageHandlerprint all to System.out but do not throw AbortException on failure or abort messagesstatic final IMessageHandlerThrow exceptions for anything with ERROR or greater severity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddontIgnore(IMessage.Kind kind) Allow fine grained configuration after initialization.booleanhandleMessage(IMessage message) Handle message, by reporting and/or throwing an AbortException.voidignore(IMessage.Kind kind) Allow fine grained configuration after initialization.booleanisIgnoring(IMessage.Kind kind) Signal clients whether this will ignore messages of a given type.
-
Constructor Details
-
AjdeCoreMessageHandlerAdapter
-
-
Method Details
-
dontIgnore
Description copied from interface:IMessageHandlerAllow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op.- Specified by:
dontIgnorein interfaceIMessageHandler- Parameters:
kind-
-
handleMessage
Description copied from interface:IMessageHandlerHandle message, by reporting and/or throwing an AbortException.- Specified by:
handleMessagein interfaceIMessageHandler- Parameters:
message- the IMessage to handle - never null- Returns:
- true if this message was handled by this handler
- Throws:
AbortException- depending on handler logic.
-
ignore
Description copied from interface:IMessageHandlerAllow fine grained configuration after initialization.- Specified by:
ignorein interfaceIMessageHandler- Parameters:
kind-
-
isIgnoring
Description copied from interface:IMessageHandlerSignal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.- Specified by:
isIgnoringin interfaceIMessageHandler- Returns:
- true if this handler is ignoring all messages of this type
-