View Javadoc

1   package cz.cuni.amis.pogamut.base.communication.parser.impl.yylex;
2   
3   import java.io.IOException;
4   import java.io.Reader;
5   
6   import cz.cuni.amis.pogamut.base.communication.messages.InfoMessage;
7   import cz.cuni.amis.pogamut.base.utils.guice.AgentScoped;
8   
9   
10  /**
11   * "Wrapper interface" for Yylex, you should wrap your yylex implementation with this
12   * interface allowing the parser to set the reader into the yylex (that triggers creation
13   * of new instance of your Yylex usually) + providing a method for parsing messages. 
14   * 
15   * @author Jimmy
16   */
17  public interface IYylex {
18  	
19  	public InfoMessage yylex() throws IOException;
20  	
21  	public void close() throws IOException;
22  	
23  	public void setReader(Reader reader);
24  	
25  	public void setObserver(IYylexObserver observer);
26  	
27  }