org.makumba.providers
Class QueryAnalysisProvider.ASTTransformVisitor
java.lang.Object
org.makumba.providers.QueryAnalysisProvider.ASTTransformVisitor
- Direct Known Subclasses:
- Pass1ASTPrinter.AssociativeFlatVisitor, Pass1FunctionInliner.InlineVisitor, QueryAnalysisProvider.SubqueryReductionVisitor
- Enclosing class:
- QueryAnalysisProvider
public abstract static class QueryAnalysisProvider.ASTTransformVisitor
- extends Object
Method Summary |
Stack<antlr.collections.AST> |
getPath()
|
boolean |
isRepetitive()
|
antlr.collections.AST |
traverse(antlr.collections.AST current)
recursively traverse the tree, and transform it via a visitor. keep a traversal state, which includes the
path from the tree root to the current node |
abstract antlr.collections.AST |
visit(antlr.collections.AST a)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repetitive
public boolean repetitive
QueryAnalysisProvider.ASTTransformVisitor
public QueryAnalysisProvider.ASTTransformVisitor(boolean repetitive)
isRepetitive
public boolean isRepetitive()
getPath
public Stack<antlr.collections.AST> getPath()
visit
public abstract antlr.collections.AST visit(antlr.collections.AST a)
traverse
public antlr.collections.AST traverse(antlr.collections.AST current)
- recursively traverse the tree, and transform it via a visitor. keep a traversal state, which includes the
path from the tree root to the current node