Top Description Inners Fields Constructors Methods
org.hibernate.hql.ast.util

public Class NodeTraverser

extends Object
Class Inheritance
Imports
antlr.collections.AST, java.util.Stack

A visitor for traversing an AST tree.
Authors
Steve Ebersole, Philip R. "Pib" Burns., Strong Liu

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final NodeTraverser.VisitationStrategy

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
traverseDepthFirst(AST
Root node of subtree to traverse.

Note that the AST passed in is not visited itself. Visitation starts with its children.

ast
)

Traverse the AST tree depth first.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

strategyback to summary
private final NodeTraverser.VisitationStrategy strategy

Constructor Detail

NodeTraverserback to summary
public NodeTraverser(NodeTraverser.VisitationStrategy strategy)

Method Detail

traverseDepthFirstback to summary
public void traverseDepthFirst(AST ast)

Traverse the AST tree depth first.

Parameters
ast:AST

Root node of subtree to traverse.

Note that the AST passed in is not visited itself. Visitation starts with its children.

visitDepthFirstback to summary
private void visitDepthFirst(AST ast)
org.hibernate.hql.ast.util back to summary

public Interface NodeTraverser.VisitationStrategy

Known Direct Implementers
org.hibernate.hql.ast.HqlSqlWalker.WithClauseVisitor, org.hibernate.hql.ast.QueryTranslatorImpl.JavaConstantConverter, org.hibernate.hql.ast.util.ASTUtil.CollectingNodeVisitor

Method Summary

Modifier and TypeMethod and Description
public void
visit(AST node)

Method Detail

visitback to summary
public void visit(AST node)