Package org.aspectj.weaver.tools
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 org.aspectj.bridge.MessageWriter
abortOnFailure, writerFields inherited from interface org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW -
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- See Also:
-
dontIgnore
Remove a message kind from the list of those ignored from now on.- Specified by:
dontIgnorein interfaceIMessageHandler- Overrides:
dontIgnorein classMessageWriter- See Also:
-
render
- Overrides:
renderin classMessageWriter- Returns:
- null to not print, or message rendering (including newlines)
-