~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to src/org/hibernate/hql/ast/HqlASTFactory.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hibernate.hql.ast;
 
2
 
 
3
import antlr.ASTFactory;
 
4
import org.hibernate.hql.ast.tree.Node;
 
5
 
 
6
/**
 
7
 * User: Joshua Davis<br>
 
8
 * Date: Sep 23, 2005<br>
 
9
 * Time: 12:30:01 PM<br>
 
10
 */
 
11
public class HqlASTFactory extends ASTFactory {
 
12
 
 
13
        /**
 
14
         * Returns the class for a given token type (a.k.a. AST node type).
 
15
         *
 
16
         * @param tokenType The token type.
 
17
         * @return Class - The AST node class to instantiate.
 
18
         */
 
19
        public Class getASTNodeType(int tokenType) {
 
20
                return Node.class;
 
21
        }
 
22
}