|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.tools.ajc.Main.MessagePrinter
public static class Main.MessagePrinter
interceptor IMessageHandler to print as we go. This formats all messages to the user.
| Field Summary | |
|---|---|
static IMessageHandler |
TERSE
|
static IMessageHandler |
VERBOSE
|
| Fields inherited from interface org.aspectj.bridge.IMessageHandler |
|---|
SYSTEM_ERR, SYSTEM_OUT, THROW |
| Constructor Summary | |
|---|---|
protected |
Main.MessagePrinter(boolean verbose)
|
| Method Summary | |
|---|---|
void |
dontIgnore(IMessage.Kind kind)
No-op |
protected java.io.PrintStream |
getStreamFor(IMessage.Kind kind)
|
boolean |
handleMessage(IMessage message)
Print errors and warnings to System.err, and optionally info to System.out, rendering message String only. |
void |
ignore(IMessage.Kind kind)
No-op |
boolean |
isIgnoring(IMessage.Kind kind)
Signal clients whether this will ignore messages of a given type. |
static java.lang.String |
render(IMessage message)
Render message differently. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IMessageHandler VERBOSE
public static final IMessageHandler TERSE
| Constructor Detail |
|---|
protected Main.MessagePrinter(boolean verbose)
| Method Detail |
|---|
public boolean handleMessage(IMessage message)
handleMessage in interface IMessageHandlermessage - the IMessage to handle - never null
public static java.lang.String render(IMessage message)
message - the IMessage to render
public boolean isIgnoring(IMessage.Kind kind)
IMessageHandler
isIgnoring in interface IMessageHandlerpublic void dontIgnore(IMessage.Kind kind)
dontIgnore in interface IMessageHandlerkind - IMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)protected java.io.PrintStream getStreamFor(IMessage.Kind 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 | ||||||||