Class Overview
Implements the semantic action methods defined in the HQL base parser to keep the grammar
source file a little cleaner. Extends the parser class generated by ANTLR.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
void
handleDotIdent
()
public
AST
handleIdentifierError
(Token token, RecognitionException ex)
Overrides the base behavior to retry keywords as identifiers.
Parameters
token
| The token. |
ex
| The recognition exception. |
Throws
| if the substitution was not possible. |
| if the substitution was not possible.
|
RecognitionException
| |
TokenStreamException
| |
public
AST
negateNode
(AST x)
Returns an equivalent tree for (NOT (a relop b) ), for example:
(NOT (GT a b) ) => (LE a b)
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.
Parameters
x
| The equality expression. |
Returns
- AST - The clean sub-tree.
public
void
processMemberOf
(Token n, AST p, ASTPair currentAST)
public
void
reportError
(RecognitionException e)
public
void
reportWarning
(String s)
public
void
traceIn
(String ruleName)
public
void
traceOut
(String ruleName)
public
void
weakKeywords
()