org.aspectj.ajdt.internal.compiler
Class WeaverMessageHandler

java.lang.Object
  extended by org.aspectj.ajdt.internal.compiler.WeaverMessageHandler
All Implemented Interfaces:
IMessageHandler

public class WeaverMessageHandler
extends java.lang.Object
implements IMessageHandler


Field Summary
 
Fields inherited from interface org.aspectj.bridge.IMessageHandler
SYSTEM_ERR, SYSTEM_OUT, THROW
 
Constructor Summary
WeaverMessageHandler(IMessageHandler handler, Compiler compiler)
           
 
Method Summary
 void dontIgnore(IMessage.Kind kind)
          No-op
 boolean handleMessage(IMessage message)
          Handle message, by reporting and/or throwing an AbortException.
 void ignore(IMessage.Kind kind)
          No-op
 boolean isIgnoring(IMessage.Kind kind)
          Signal clients whether this will ignore messages of a given type.
 void resetCompiler(Compiler c)
           
 void setCurrentResult(CompilationResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaverMessageHandler

public WeaverMessageHandler(IMessageHandler handler,
                            Compiler compiler)
Method Detail

resetCompiler

public void resetCompiler(Compiler c)

setCurrentResult

public void setCurrentResult(CompilationResult result)

handleMessage

public boolean handleMessage(IMessage message)
                      throws AbortException
Description copied from interface: IMessageHandler
Handle message, by reporting and/or throwing an AbortException.

Specified by:
handleMessage in interface IMessageHandler
Parameters:
message - the IMessage to handle - never null
Returns:
true if this message was handled by this handler
Throws:
AbortException - depending on handler logic.

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
Returns:
true if this handler is ignoring all messages of this type

dontIgnore

public void dontIgnore(IMessage.Kind kind)
No-op

Specified by:
dontIgnore in interface IMessageHandler
Parameters:
kind -
See Also:
IMessageHandler.isIgnoring(org.aspectj.bridge.IMessage.Kind)

ignore

public void ignore(IMessage.Kind kind)
No-op

Specified by:
ignore in interface IMessageHandler
Parameters:
kind -
See Also:
IMessageHandler.ignore(org.aspectj.bridge.IMessage.Kind)