Package org.aspectj.weaver.tools
Class WeavingAdaptor.WeavingAdaptorMessageHolder
java.lang.Object
org.aspectj.bridge.MessageHandler
org.aspectj.weaver.tools.WeavingAdaptor.WeavingAdaptorMessageHolder
- All Implemented Interfaces:
IMessageHandler,IMessageHolder
- Enclosing class:
- WeavingAdaptor
Processes messages arising from weaver operations. Tell weaver to abort on any message more severe than warning.
-
Field Summary
FieldsFields inherited from class org.aspectj.bridge.MessageHandler
handleMessageResult, ignoring, interceptor, messagesFields inherited from interface org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROWFields inherited from interface org.aspectj.bridge.IMessageHolder
EQUAL, ORGREATER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddontIgnore(IMessage.Kind kind)Remove a message kind from the list of those ignored from now on.voidbooleanhandleMessage(IMessage message)This implementation accumulates message.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 StringvoidsetDelegate(IMessageHandler messageHandler)Methods inherited from class org.aspectj.bridge.MessageHandler
clearMessages, getErrors, getMessages, getWarnings, hasAnyMessage, init, init, numMessages, setInterceptor, toString
-
Field Details
-
traceMessages
protected boolean traceMessages
-
-
Constructor Details
-
WeavingAdaptorMessageHolder
-
-
Method Details
-
render
-
flushMessages
public void flushMessages() -
setDelegate
-
handleMessage
Description copied from class:MessageHandlerThis implementation accumulates message. If an interceptor is installed and returns true (message handled), then processing halts and the message is not accumulated.- Specified by:
handleMessagein interfaceIMessageHandler- Overrides:
handleMessagein classMessageHandler- Parameters:
message- the IMessage to handle - never null- Returns:
- true on interception or the constructor value otherwise
- Throws:
AbortException- depending on handler logic.- See Also:
IMessageHandler.handleMessage(IMessage)
-
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 classMessageHandler- Returns:
- true if this kind has been flagged to be ignored.
- See Also:
MessageHandler.ignore(IMessage.Kind),IMessageHandler.isIgnoring(Kind)
-
dontIgnore
Description copied from class:MessageHandlerRemove a message kind from the list of those ignored from now on.- Specified by:
dontIgnorein interfaceIMessageHandler- Overrides:
dontIgnorein classMessageHandler
-
ignore
Description copied from class:MessageHandlerSet a message kind to be ignored from now on- Specified by:
ignorein interfaceIMessageHandler- Overrides:
ignorein classMessageHandler
-
getUnmodifiableListView
- Specified by:
getUnmodifiableListViewin interfaceIMessageHolder- Overrides:
getUnmodifiableListViewin classMessageHandler- Returns:
- unmodifiable List view of underlying collection of IMessage
- See Also:
IMessageHolder.getUnmodifiableListView()
-