cz.cuni.amis.pogamut.base.communication.parser.impl.yylex
Class IYylexObserver.LogObserver

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver.LogObserver
All Implemented Interfaces:
IYylexObserver
Enclosing interface:
IYylexObserver

public static class IYylexObserver.LogObserver
extends java.lang.Object
implements IYylexObserver

Default implementation of the IYylexObserver logging everything into AgentLogger.platform() log category.


Nested Class Summary
 
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver
IYylexObserver.LogObserver
 
Constructor Summary
IYylexObserver.LogObserver(IAgentLogger agentLogger)
           
 
Method Summary
 void exception(java.lang.Exception e, java.lang.String info)
          Called whenever exception occures in the Yylex caused by OUR miscoding.
 void warning(java.lang.String info)
          Called when some mischief happens but the parser recovers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IYylexObserver.LogObserver

@Inject
public IYylexObserver.LogObserver(IAgentLogger agentLogger)
Method Detail

exception

public void exception(java.lang.Exception e,
                      java.lang.String info)
Description copied from interface: IYylexObserver
Called whenever exception occures in the Yylex caused by OUR miscoding. (Note that we're not hacking Yylex code to report all it's exceptions through this observer - we will call this observer only from our parts of the code from yylex.java)

Specified by:
exception in interface IYylexObserver
Parameters:
e - never null
info - never null

warning

public void warning(java.lang.String info)
Description copied from interface: IYylexObserver
Called when some mischief happens but the parser recovers. (Like wrong parsing of the message, skipping to next...)

Specified by:
warning in interface IYylexObserver