Class WeavingAdaptor.WeavingAdaptorMessageWriter
java.lang.Object
org.aspectj.bridge.MessageWriter
org.aspectj.weaver.tools.WeavingAdaptor.WeavingAdaptorMessageWriter
- All Implemented Interfaces:
IMessageHandler
- Enclosing class:
WeavingAdaptor
-
Field Summary
Fields inherited from class MessageWriter
abortOnFailure, writerFields 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) Remove a message kind from the list of those ignored from now on.booleanhandleMessage(IMessage message) Handle message by printing and (if abortOnFailure) throwing an AbortException if the messages is a failure or an abort (but not for errors).voidignore(IMessage.Kind kind) Set a message kind to be ignored from now onbooleanisIgnoring(IMessage.Kind kind) Signal clients whether this will ignore messages of a given type.protected String
-
Constructor Details
-
WeavingAdaptorMessageWriter
-
-
Method Details
-
handleMessage
Description copied from class:MessageWriterHandle message by printing and (if abortOnFailure) throwing an AbortException if the messages is a failure or an abort (but not for errors).- Specified by:
handleMessagein interfaceIMessageHandler- Overrides:
handleMessagein classMessageWriter- Parameters:
message- the IMessage to handle - never null- Returns:
- true if this message was handled by this handler
- Throws:
AbortException- depending on handler logic.- See Also:
-
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- Overrides:
isIgnoringin classMessageWriter- Returns:
- true if this handler is ignoring all messages of this type
- See Also:
-
ignore
Set a message kind to be ignored from now on- Specified by:
ignorein interfaceIMessageHandler- Overrides:
ignorein classMessageWriter- Parameters:
kind-- See Also:
-
dontIgnore
Remove a message kind from the list of those ignored from now on.- Specified by:
dontIgnorein interfaceIMessageHandler- Overrides:
dontIgnorein classMessageWriter- Parameters:
kind-- See Also:
-
render
- Overrides:
renderin classMessageWriter- Returns:
- null to not print, or message rendering (including newlines)
-