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
protected class WeavingAdaptor.WeavingAdaptorMessageWriter
- extends MessageWriter
Method Summary |
void |
dontIgnore(IMessage.Kind kind)
Remove a message kind from the list of those ignored from now on. |
boolean |
handleMessage(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). |
void |
ignore(IMessage.Kind kind)
Set a message kind to be ignored from now on |
boolean |
isIgnoring(IMessage.Kind kind)
Signal clients whether this will ignore messages of a given type. |
protected java.lang.String |
render(IMessage message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeavingAdaptor.WeavingAdaptorMessageWriter
public WeavingAdaptor.WeavingAdaptorMessageWriter(java.io.PrintWriter writer)
handleMessage
public boolean handleMessage(IMessage message)
throws AbortException
- Description copied from class:
MessageWriter
- Handle message by printing and
(if abortOnFailure) throwing an AbortException if
the messages is a failure or an abort (but not for errors).
- Specified by:
handleMessage
in interface IMessageHandler
- Overrides:
handleMessage
in class MessageWriter
- 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:
IMessageHandler.handleMessage(IMessage)
isIgnoring
public boolean isIgnoring(IMessage.Kind kind)
- Description copied from interface:
IMessageHandler
- Signal clients whether this will ignore messages of a given type.
Clients may use this to avoid constructing or sending certain messages.
- Specified by:
isIgnoring
in interface IMessageHandler
- Overrides:
isIgnoring
in class MessageWriter
- Returns:
- true if this handler is ignoring all messages of this type
- See Also:
IMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)
ignore
public void ignore(IMessage.Kind kind)
- Set a message kind to be ignored from now on
- Specified by:
ignore
in interface IMessageHandler
- Overrides:
ignore
in class MessageWriter
- See Also:
IMessageHandler.ignore(org.aspectj.bridge.IMessage.Kind)
dontIgnore
public void dontIgnore(IMessage.Kind kind)
- Remove a message kind from the list of those ignored from now on.
- Specified by:
dontIgnore
in interface IMessageHandler
- Overrides:
dontIgnore
in class MessageWriter
- See Also:
IMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)
render
protected java.lang.String render(IMessage message)
- Overrides:
render
in class MessageWriter
- Returns:
- null to not print, or message rendering (including newlines)