KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > hql > classic > Parser


1 //$Id: Parser.java,v 1.1 2004/12/08 00:22:20 oneovthafew Exp $
2
package org.hibernate.hql.classic;
3
4 import org.hibernate.QueryException;
5
6 /**
7  * A parser is a state machine that accepts a string of tokens,
8  * bounded by start() and end() and modifies a QueryTranslator. Parsers
9  * are NOT intended to be threadsafe. They SHOULD be reuseable
10  * for more than one token stream.
11  */

12
13 public interface Parser {
14     public void token(String JavaDoc token, QueryTranslatorImpl q) throws QueryException;
15
16     public void start(QueryTranslatorImpl q) throws QueryException;
17
18     public void end(QueryTranslatorImpl q) throws QueryException;
19 }
20
21
22
23
24
25
26
27
Popular Tags