org.hibernate.hql.internal.ast.HqlASTFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.hql.internal.ast;
import org.hibernate.hql.internal.ast.tree.Node;
import antlr.ASTFactory;
/**
* User: Joshua Davis
* Date: Sep 23, 2005
* Time: 12:30:01 PM
*/
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;
}
}