public class

NodeTraverser

extends Object
java.lang.Object
   ↳ org.hibernate.hql.ast.util.NodeTraverser

Class Overview

A visitor for traversing an AST tree.

Summary

Nested Classes
interface NodeTraverser.VisitationStrategy  
Public Constructors
NodeTraverser(NodeTraverser.VisitationStrategy strategy)
Public Methods
void traverseDepthFirst(AST ast)
Traverse the AST tree depth first.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NodeTraverser (NodeTraverser.VisitationStrategy strategy)

Public Methods

public void traverseDepthFirst (AST ast)

Traverse the AST tree depth first.

Parameters
ast Root node of subtree to traverse.

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