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

pack-priv Class HqlLexer

extends HqlBaseLexer
Class Inheritance
Imports
java.io.Reader, org.hibernate.QueryException, org.hibernate.hql.internal.antlr.HqlBaseLexer, antlr.Token

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
Inherited from org.hibernate.hql.internal.antlr.HqlBaseLexer:
_tokenSet_0_tokenSet_1_tokenSet_2_tokenSet_3_tokenSet_4

Constructor Summary

AccessConstructor and Description
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
Inherited from org.hibernate.hql.internal.antlr.HqlBaseLexer:
mCLOSEmCLOSE_BRACKETmCOLONmCOMMAmCONCATmDIVmEQmESCqsmEXPONENTmFLOAT_SUFFIXmGEmGTmHEX_DIGITmID_LETTERmID_START_LETTERmIDENTmLEmLTmMINUSmMODmNEmNUM_INTmOPENmOPEN_BRACKETmPARAMmPLUSmQUOTED_STRINGmSQL_NEmSTARmWSnextToken

Field Detail

possibleIDback to summary
private boolean possibleID

Constructor Detail

HqlLexerback to summary
public HqlLexer(Reader in)

Method Detail

makeTokenback to summary
protected Token makeToken(int i)

Overrides antlr.CharScanner.makeToken.

Annotations
@Override
panicback to summary
public void panic()

Overrides antlr.CharScanner.panic.

Annotations
@Override
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).

Annotations
@Override
setPossibleIDback to summary
protected void setPossibleID(boolean possibleID)

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

Annotations
@Override
setTokenObjectClassback to summary
public void setTokenObjectClass(String cl)

Overrides antlr.CharScanner.setTokenObjectClass.

Annotations
@Override