org.hibernate.hql.ast.util

Class NodeTraverser


public class NodeTraverser
extends java.lang.Object

A visitor for traversing an AST tree.
Author:
Steve Ebersole

Nested Class Summary

static interface
NodeTraverser.VisitationStrategy

Constructor Summary

NodeTraverser(NodeTraverser.VisitationStrategy strategy)

Method Summary

void
traverseDepthFirst(AST ast)
Traverse the AST tree depth first.

Constructor Details

NodeTraverser

public NodeTraverser(NodeTraverser.VisitationStrategy strategy)

Method Details

traverseDepthFirst

public void traverseDepthFirst(AST ast)
Traverse the AST tree depth first.

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

Parameters:
ast -