Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/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;
  }
}