FileDocCategorySizeDatePackage
HqlASTFactory.javaAPI DocHibernate 3.2.5479Fri Sep 23 11:51:56 BST 2005org.hibernate.hql.ast

HqlASTFactory.java

package org.hibernate.hql.ast;

import antlr.ASTFactory;
import org.hibernate.hql.ast.tree.Node;

/**
 * User: Joshua Davis<br>
 * Date: Sep 23, 2005<br>
 * Time: 12:30:01 PM<br>
 */
public class HqlASTFactory extends ASTFactory {

	/**
	 * Returns the class for a given token type (a.k.a. AST node type).
	 *
	 * @param tokenType The token type.
	 * @return Class - The AST node class to instantiate.
	 */
	public Class getASTNodeType(int tokenType) {
		return Node.class;
	}
}