Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
LLkParser
org.hibernate.hql.antlr.HqlBaseParser
org.hibernate.hql.ast.HqlParser
public final class HqlParser
extends HqlBaseParser
Field Summary |
Fields inherited from class org.hibernate.hql.antlr.HqlBaseParser | |
_tokenNames , _tokenSet_0 , _tokenSet_1 , _tokenSet_10 , _tokenSet_11 , _tokenSet_12 , _tokenSet_13 , _tokenSet_14 , _tokenSet_15 , _tokenSet_16 , _tokenSet_17 , _tokenSet_18 , _tokenSet_19 , _tokenSet_2 , _tokenSet_20 , _tokenSet_21 , _tokenSet_22 , _tokenSet_23 , _tokenSet_24 , _tokenSet_25 , _tokenSet_26 , _tokenSet_27 , _tokenSet_28 , _tokenSet_29 , _tokenSet_3 , _tokenSet_30 , _tokenSet_31 , _tokenSet_32 , _tokenSet_33 , _tokenSet_34 , _tokenSet_35 , _tokenSet_4 , _tokenSet_5 , _tokenSet_6 , _tokenSet_7 , _tokenSet_8 , _tokenSet_9 |
Method Summary | |
static HqlParser |
|
ParseErrorHandler | |
void |
|
AST |
|
AST |
|
static void |
|
AST |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
public void handleDotIdent() throws TokenStreamException
This method looks ahead and converts .into . IDENT when appropriate.
- Overrides:
- handleDotIdent in interface HqlBaseParser
public AST handleIdentifierError(Token token, RecognitionException ex) throws RecognitionException, TokenStreamException
Overrides the base behavior to retry keywords as identifiers.
- Overrides:
- handleIdentifierError in interface HqlBaseParser
- Parameters:
token
- The token.ex
- The recognition exception.
- Returns:
- AST - The new AST.
public AST negateNode(AST x)
Returns an equivalent tree for (NOT (a relop b) ), for example:(NOT (GT a b) ) => (LE a b)
- Overrides:
- negateNode in interface HqlBaseParser
- Parameters:
x
- The sub tree to transform, the parent is assumed to be NOT.
- Returns:
- AST - The equivalent sub-tree.
public static void panic()
public AST processEqualityExpression(AST x)
Post process equality expressions, clean up the subtree.
- Overrides:
- processEqualityExpression in interface HqlBaseParser
- Parameters:
x
- The equality expression.
- Returns:
- AST - The clean sub-tree.
public void processMemberOf(Token n, AST p, ASTPair currentAST)
- Overrides:
- processMemberOf in interface HqlBaseParser
public void reportError(RecognitionException e)
public void reportError(String s)
public void reportWarning(String s)
public void showAst(AST ast, PrintStream out)
public void weakKeywords() throws TokenStreamException
- Overrides:
- weakKeywords in interface HqlBaseParser