FileDocCategorySizeDatePackage
HqlLexer.javaAPI DocHibernate 3.2.51354Sat Jul 16 12:28:40 BST 2005org.hibernate.hql.ast

HqlLexer

public class HqlLexer extends org.hibernate.hql.antlr.HqlBaseLexer
Custom lexer for the HQL grammar. Extends the base lexer generated by ANTLR in order to keep the grammar source file clean.

Fields Summary
private boolean
possibleID
A logger for this class. *
Constructors Summary
public HqlLexer(InputStream in)


	   
		super( in );
	
public HqlLexer(Reader in)

        super(in);
    
Methods Summary
protected antlr.TokenmakeToken(int i)

		HqlToken token = ( HqlToken ) super.makeToken( i );
		token.setPossibleID( possibleID );
		possibleID = false;
		return token;
	
public voidpanic()

		//overriden to avoid System.exit
		panic("CharScanner: panic");
	
public voidpanic(java.lang.String s)

		//overriden to avoid System.exit
		throw new QueryException(s);
	
protected voidsetPossibleID(boolean possibleID)

		this.possibleID = possibleID;
	
public voidsetTokenObjectClass(java.lang.String cl)

		// Ignore the token class name parameter, and use a specific token class.
		super.setTokenObjectClass( HqlToken.class.getName() );
	
public inttestLiteralsTable(int i)

		int ttype = super.testLiteralsTable( i );
		return ttype;