Example usage for org.hibernate.hql.internal.ast.tree Node Node

List of usage examples for org.hibernate.hql.internal.ast.tree Node Node

Introduction

In this page you can find the example usage for org.hibernate.hql.internal.ast.tree Node Node.

Prototype

public Node() 

Source Link

Usage

From source file:org.babyfish.hibernate.hql.HqlASTHelper.java

License:Open Source License

public static AST createAST(int type, String text, AST... childAsts) {
    AST ast = new Node();
    ast.setType(type);//ww  w.  j a  v a2  s  .  c o  m
    ast.setText(text);
    for (AST childAst : childAsts) {
        if (childAst != null) {
            ast.addChild(childAst);
        }
    }
    return ast;
}