Package org.aspectj.tools.ajc
Klasse Main.MessagePrinter
java.lang.Object
org.aspectj.tools.ajc.Main.MessagePrinter
- Alle implementierten Schnittstellen:
IMessageHandler
- Bekannte direkte Unterklassen:
Main.LogModeMessagePrinter
- Umschließende Klasse:
Main
interceptor IMessageHandler to print as we go. This formats all messages to the user.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
dontIgnore
(IMessage.Kind kind) No-opprotected 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-opboolean
isIgnoring
(IMessage.Kind kind) Signal clients whether this will ignore messages of a given type.static String
Render message differently.
-
Felddetails
-
VERBOSE
-
TERSE
-
-
Konstruktordetails
-
MessagePrinter
protected MessagePrinter(boolean verbose)
-
-
Methodendetails
-
handleMessage
Print errors and warnings to System.err, and optionally info to System.out, rendering message String only.- Angegeben von:
handleMessage
in SchnittstelleIMessageHandler
- Parameter:
message
- the IMessage to handle - never null- Gibt zurück:
- false always
-
render
Render message differently. If abort, then prefix stack trace with feedback request. If the actual message is empty, then use toString on the whole. Prefix message part with file:line; If it has context, suffix message with context.- Parameter:
message
- the IMessage to render- Gibt zurück:
- String rendering IMessage (never null)
-
isIgnoring
Beschreibung aus Schnittstelle kopiert:IMessageHandler
Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.- Angegeben von:
isIgnoring
in SchnittstelleIMessageHandler
- Gibt zurück:
- true if this handler is ignoring all messages of this type
-
dontIgnore
No-op- Angegeben von:
dontIgnore
in SchnittstelleIMessageHandler
- Parameter:
kind
-- Siehe auch:
-
getStreamFor
- Gibt zurück:
- System.err for FAIL, ABORT, ERROR, and WARNING, System.out for INFO if -verbose and WEAVEINFO if -showWeaveInfo.
-
ignore
No-op- Angegeben von:
ignore
in SchnittstelleIMessageHandler
- Parameter:
kind
-- Siehe auch:
-