org.hibernate.hql.classic

Interface Parser

Known Implementing Classes:
ClauseParser, FromParser, FromPathExpressionParser, GroupByParser, HavingParser, OrderByParser, PathExpressionParser, PreprocessingParser, SelectParser, SelectPathExpressionParser, WhereParser

public interface Parser

A parser is a state machine that accepts a string of tokens, bounded by start() and end() and modifies a QueryTranslator. Parsers are NOT intended to be threadsafe. They SHOULD be reuseable for more than one token stream.

Method Summary

void
end(QueryTranslatorImpl q)
void
start(QueryTranslatorImpl q)
void
token(String token, QueryTranslatorImpl q)

Method Details

end

public void end(QueryTranslatorImpl q)
            throws QueryException

start

public void start(QueryTranslatorImpl q)
            throws QueryException

token

public void token(String token,
                  QueryTranslatorImpl q)
            throws QueryException