/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
 * indicated by the @author tags or express copyright attribution
 * statements applied by the authors.  All third-party contributions are
 * distributed under license by Red Hat Middleware LLC.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 *
 */
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
/** * 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).
Params:
  • tokenType – The token type.
Returns:Class - The AST node class to instantiate.
/** * 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; } }