|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.TreeParser
net.esper.eql.generated.EQLBaseWalker
net.esper.eql.parse.EQLTreeWalker
public class EQLTreeWalker
Called during the walks of a EQL expression AST tree as specified in the grammar file. Constructs filter and view specifications etc.
Field Summary |
---|
Fields inherited from class net.esper.eql.generated.EQLBaseWalker |
---|
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2 |
Fields inherited from class antlr.TreeParser |
---|
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
Constructor Summary | |
---|---|
EQLTreeWalker(EventAdapterService eventAdapterService)
Ctor. |
Method Summary | |
---|---|
protected void |
end()
End processing of the AST tree, check that expression nodes found their homes. |
ExprNode |
getFilterRootNode()
Returns the WHERE-clause root node of filter expression. |
java.util.List<ExprNode> |
getGroupByExpressions()
Returns list of group-by expressions. |
ExprNode |
getHavingExprRootNode()
Returns expression root node representing the having-clause, if present, or null if no having clause was supplied. |
InsertIntoDesc |
getInsertIntoDesc()
Return a descriptor with the insert-into event name and optional list of columns. |
java.util.List<Pair<ExprNode,java.lang.Boolean>> |
getOrderByList()
Returns the list of order-by expression as specified in the ORDER BY clause. |
java.util.List<OuterJoinDesc> |
getOuterJoinDescList()
Returns the LEFT/RIGHT/FULL OUTER JOIN-type and property name descriptor, if applicable. |
OutputLimitSpec |
getOutputLimitSpec()
Returns the output limit definition, if any. |
java.util.List<Pair<ExprNode,java.lang.String>> |
getSelectListExpressions()
Returns SELECT-clause list of expressions. |
java.util.List<StreamSpec> |
getStreamSpecs()
Returns the FROM-clause stream definitions. |
protected void |
leaveNode(antlr.collections.AST node)
Leave AST node and process it's type and child nodes. |
Methods inherited from class antlr.TreeParser |
---|
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EQLTreeWalker(EventAdapterService eventAdapterService)
eventAdapterService
- for resolving event namesMethod Detail |
---|
public java.util.List<StreamSpec> getStreamSpecs()
public java.util.List<Pair<ExprNode,java.lang.String>> getSelectListExpressions()
public ExprNode getFilterRootNode()
public java.util.List<OuterJoinDesc> getOuterJoinDescList()
public java.util.List<ExprNode> getGroupByExpressions()
public ExprNode getHavingExprRootNode()
public OutputLimitSpec getOutputLimitSpec()
public InsertIntoDesc getInsertIntoDesc()
public java.util.List<Pair<ExprNode,java.lang.Boolean>> getOrderByList()
protected void leaveNode(antlr.collections.AST node) throws ASTWalkException
leaveNode
in class EQLBaseWalker
node
- is the node to complete
ASTWalkException
protected void end() throws ASTWalkException
end
in class EQLBaseWalker
ASTWalkException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |