cz.cuni.amis.pogamut.base.communication.parser.impl.yylex
Class IYylexObserver.LogObserver
java.lang.Object
cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver.LogObserver
- All Implemented Interfaces:
- IYylexObserver
- Enclosing interface:
- IYylexObserver
public static class IYylexObserver.LogObserver
- extends Object
- implements IYylexObserver
Default implementation of the IYylexObserver logging everything into AgentLogger.platform()
log category.
- Author:
- Jimmy
Method Summary |
void |
exception(Exception e,
String info)
Called whenever exception occures in the Yylex caused by OUR miscoding. |
void |
warning(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 |
IYylexObserver.LogObserver
@Inject
public IYylexObserver.LogObserver(IAgentLogger agentLogger)
exception
public void exception(Exception e,
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 nullinfo
- never null
warning
public void warning(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
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.