org.makumba.providers
Class QueryAnalysisProvider.ASTTransformVisitor

java.lang.Object
  extended by 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


Field Summary
 boolean repetitive
           
 
Constructor Summary
QueryAnalysisProvider.ASTTransformVisitor(boolean repetitive)
           
 
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
 

Field Detail

repetitive

public boolean repetitive
Constructor Detail

QueryAnalysisProvider.ASTTransformVisitor

public QueryAnalysisProvider.ASTTransformVisitor(boolean repetitive)
Method Detail

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