public class

BinaryArithmeticOperatorNode

extends AbstractSelectExpression
implements BinaryOperatorNode DisplayableNode
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.BinaryArithmeticOperatorNode

Class Overview

Nodes which represent binary arithmetic operators.

Summary

Public Constructors
BinaryArithmeticOperatorNode()
Public Methods
Type getDataType()
Figure out the type of the binary expression by looking at the types of the operands.
String getDisplayText()
Returns additional display text for the AST node.
Node getLeftHandOperand()
Retrieves the left-hand operand of the operator.
Node getRightHandOperand()
Retrieves the right-hand operand of the operator.
void initialize()
Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.
void setScalarColumnText(int i)
[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.BinaryOperatorNode
From interface org.hibernate.hql.ast.tree.DisplayableNode
From interface org.hibernate.hql.ast.tree.InitializeableNode
From interface org.hibernate.hql.ast.tree.OperatorNode
From interface org.hibernate.hql.ast.tree.SelectExpression

Public Constructors

public BinaryArithmeticOperatorNode ()

Public Methods

public Type getDataType ()

Figure out the type of the binary expression by looking at the types of the operands. Sometimes we don't know both types, if, for example, one is a parameter.

public String getDisplayText ()

Returns additional display text for the AST node.

Returns
  • String - The additional display text.

public Node getLeftHandOperand ()

Retrieves the left-hand operand of the operator.

Returns
  • The left-hand operand

public Node getRightHandOperand ()

Retrieves the right-hand operand of the operator.

Returns
  • The right-hand operand

public void initialize ()

Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.

Throws
SemanticException

public void setScalarColumnText (int i)

Throws
SemanticException