Top Description Fields Constructors Methods
org.hibernate.hql.ast

pack-priv Class HqlLexer

extends HqlBaseLexer
Class Inheritance
Imports
java.io.InputStream, .Reader, antlr.Token, org.hibernate.QueryException, 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.

Field Summary

Modifier and TypeField and Description
private boolean
possibleID

A logger for this class.

Inherited from org.hibernate.hql.antlr.HqlBaseLexer:
_tokenSet_0_tokenSet_1_tokenSet_2_tokenSet_3_tokenSet_4

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected Token
public void
public void
panic(String s)

Overrides antlr.CharScanner.panic.

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from.
protected void
public void
public int
Inherited from org.hibernate.hql.antlr.HqlBaseLexer:
mCLOSEmCLOSE_BRACKETmCOLONmCOMMAmCONCATmDIVmEQmESCqsmEXPONENTmFLOAT_SUFFIXmGEmGTmHEX_DIGITmID_LETTERmID_START_LETTERmIDENTmLEmLTmMINUSmMODmNEmNUM_INTmOPENmOPEN_BRACKETmPARAMmPLUSmQUOTED_STRINGmSQL_NEmSTARmWSnextToken

Field Detail

possibleIDback to summary
private boolean possibleID

A logger for this class. *

Constructor Detail

HqlLexerback to summary
public HqlLexer(InputStream in)
HqlLexerback to summary
public HqlLexer(Reader in)

Method Detail

makeTokenback to summary
protected Token makeToken(int i)

Overrides antlr.CharScanner.makeToken.

panicback to summary
public void panic()

Overrides antlr.CharScanner.panic.

panicback to summary
public void panic(String s)

Overrides antlr.CharScanner.panic.

Doc from antlr.CharScanner.panic.

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The default implementation of this method calls java.lang.System.exit(int) and writes directly to java.lang.System.err) , which is usually not appropriate when a translator is embedded into a larger application. It is highly recommended that this method be overridden to handle the error in a way appropriate for your application (e.g. throw an unchecked exception).

setPossibleIDback to summary
protected void setPossibleID(boolean possibleID)

Overrides org.hibernate.hql.antlr.HqlBaseLexer.setPossibleID.

setTokenObjectClassback to summary
public void setTokenObjectClass(String cl)

Overrides antlr.CharScanner.setTokenObjectClass.

testLiteralsTableback to summary
public int testLiteralsTable(int i)

Overrides antlr.CharScanner.testLiteralsTable.