public class

BinaryLogicOperatorNode

extends HqlSqlWalkerNode
implements BinaryOperatorNode
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.BinaryLogicOperatorNode
Known Direct Subclasses

Class Overview

Contract for nodes representing binary operators.

Summary

Public Constructors
BinaryLogicOperatorNode()
Public Methods
Type getDataType()
Node getLeftHandOperand()
Retrieves the left-hand operand of the operator.
Node getRightHandOperand()
Retrieves the right-hand operand of the operator.
void initialize()
Performs the operator node initialization by seeking out any parameter nodes and setting their expected type, if possible.
Protected Methods
Type extractDataType(Node operand)
static String[] extractMutationTexts(Node operand, int count)
final void mutateRowValueConstructorSyntaxesIfNecessary(Type lhsType, Type rhsType)
void translate(int valueElements, int comparisonType, String comparisonText, String[] lhsElementTexts, String[] rhsElementTexts, ParameterSpecification lhsEmbeddedCompositeParameterSpecification, ParameterSpecification rhsEmbeddedCompositeParameterSpecification, AST container)
[Expand]
Inherited Methods
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.InitializeableNode
From interface org.hibernate.hql.ast.tree.OperatorNode

Public Constructors

public BinaryLogicOperatorNode ()

Public Methods

public Type getDataType ()

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 ()

Performs the operator node initialization by seeking out any parameter nodes and setting their expected type, if possible.

Throws
SemanticException

Protected Methods

protected Type extractDataType (Node operand)

protected static String[] extractMutationTexts (Node operand, int count)

protected final void mutateRowValueConstructorSyntaxesIfNecessary (Type lhsType, Type rhsType)

protected void translate (int valueElements, int comparisonType, String comparisonText, String[] lhsElementTexts, String[] rhsElementTexts, ParameterSpecification lhsEmbeddedCompositeParameterSpecification, ParameterSpecification rhsEmbeddedCompositeParameterSpecification, AST container)