public class

MethodNode

extends AbstractSelectExpression
implements FunctionNode SelectExpression
java.lang.Object
   ↳ antlr.CommonAST
     ↳ org.hibernate.hql.ast.tree.Node
       ↳ org.hibernate.hql.ast.tree.SqlNode
         ↳ org.hibernate.hql.ast.tree.HqlSqlWalkerNode
           ↳ org.hibernate.hql.ast.tree.AbstractSelectExpression
             ↳ org.hibernate.hql.ast.tree.MethodNode
Known Direct Subclasses

Class Overview

Represents a method call.

Summary

Public Constructors
MethodNode()
Public Methods
String getDisplayText()
Type getFirstArgumentType()
FromElement getFromElement()
Returns the FROM element that this expression refers to.
SQLFunction getSQLFunction()
void initializeMethodNode(AST name, boolean inSelect)
boolean isCollectionPropertyMethod()
boolean isScalar()
void resolve(boolean inSelect)
void resolveCollectionProperty(AST expr)
void setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.
Protected Methods
void prepareSelectColumns(String[] columns)
[Expand]
Inherited Methods
From class org.hibernate.hql.ast.tree.AbstractSelectExpression
From class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
From class org.hibernate.hql.ast.tree.SqlNode
From class org.hibernate.hql.ast.tree.Node
From class java.lang.Object
From interface org.hibernate.hql.ast.tree.FunctionNode
From interface org.hibernate.hql.ast.tree.InitializeableNode
From interface org.hibernate.hql.ast.tree.SelectExpression

Public Constructors

public MethodNode ()

Public Methods

public String getDisplayText ()

public Type getFirstArgumentType ()

public FromElement getFromElement ()

Returns the FROM element that this expression refers to.

Returns
  • The FROM element.

public SQLFunction getSQLFunction ()

public void initializeMethodNode (AST name, boolean inSelect)

public boolean isCollectionPropertyMethod ()

public boolean isScalar ()

Throws
SemanticException

public void resolve (boolean inSelect)

Throws
SemanticException

public void resolveCollectionProperty (AST expr)

Throws
SemanticException

public void setScalarColumnText (int i)

Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters
i The index of the select expression in the projection list.
Throws
SemanticException

Protected Methods

protected void prepareSelectColumns (String[] columns)