|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspectj.bridge.MessageWriter
public class MessageWriter
An IMessageHandler implementation that writes all to a PrintWriter. Clients may set this up to throw AbortException for FAIL or ERROR messages. Subclasses may control whether messages are printed and how they are rendered by overriding render(IMessage).
| Field Summary |
|---|
| Fields inherited from interface org.aspectj.bridge.IMessageHandler |
|---|
SYSTEM_ERR, SYSTEM_OUT, THROW |
| Constructor Summary | |
|---|---|
MessageWriter(java.io.PrintWriter writer,
boolean abortOnFailure)
|
|
| Method Summary | |
|---|---|
void |
dontIgnore(IMessage.Kind kind)
No-op |
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)
No-op |
boolean |
isIgnoring(IMessage.Kind kind)
Signal clients whether this will ignore messages of a given type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageWriter(java.io.PrintWriter writer,
boolean abortOnFailure)
| Method Detail |
|---|
public boolean handleMessage(IMessage message)
throws AbortException
handleMessage in interface IMessageHandlermessage - the IMessage to handle - never null
AbortException - depending on handler logic.IMessageHandler.handleMessage(IMessage)public boolean isIgnoring(IMessage.Kind kind)
IMessageHandler
isIgnoring in interface IMessageHandlerIMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)public void dontIgnore(IMessage.Kind kind)
dontIgnore in interface IMessageHandlerkind - IMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)public void ignore(IMessage.Kind kind)
ignore in interface IMessageHandlerkind - IMessageHandler.ignore(org.aspectj.bridge.IMessage.Kind)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||