org.hibernate.hql.ast.tree
Class BinaryLogicOperatorNode

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended byorg.hibernate.hql.ast.tree.Node
              extended byorg.hibernate.hql.ast.tree.SqlNode
                  extended byorg.hibernate.hql.ast.tree.HqlSqlWalkerNode
                      extended byorg.hibernate.hql.ast.tree.BinaryLogicOperatorNode
All Implemented Interfaces:
antlr.collections.AST, BinaryOperatorNode, InitializeableNode, OperatorNode, Serializable
Direct Known Subclasses:
InLogicOperatorNode

public class BinaryLogicOperatorNode
extends HqlSqlWalkerNode
implements BinaryOperatorNode

Contract for nodes representing binary operators.

Author:
Steve Ebersole
See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
BinaryLogicOperatorNode()
           
 
Method Summary
protected  Type extractDataType(Node operand)
           
 Type getDataType()
          Retrieves the data type for the overall operator expression.
 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  void mutateRowValueConstructorSyntaxesIfNecessary(Type lhsType, Type rhsType)
           
 
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
 
Methods inherited from class org.hibernate.hql.ast.tree.SqlNode
getOriginalText, setDataType, setText
 
Methods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryLogicOperatorNode

public BinaryLogicOperatorNode()
Method Detail

initialize

public void initialize()
                throws antlr.SemanticException
Performs the operator node initialization by seeking out any parameter nodes and setting their expected type, if possible.

Specified by:
initialize in interface OperatorNode
Throws:
antlr.SemanticException

mutateRowValueConstructorSyntaxesIfNecessary

protected final void mutateRowValueConstructorSyntaxesIfNecessary(Type lhsType,
                                                                  Type rhsType)

extractDataType

protected Type extractDataType(Node operand)

getDataType

public Type getDataType()
Description copied from interface: OperatorNode
Retrieves the data type for the overall operator expression.

Specified by:
getDataType in interface OperatorNode
Overrides:
getDataType in class SqlNode

getLeftHandOperand

public Node getLeftHandOperand()
Retrieves the left-hand operand of the operator.

Specified by:
getLeftHandOperand in interface BinaryOperatorNode
Returns:
The left-hand operand

getRightHandOperand

public Node getRightHandOperand()
Retrieves the right-hand operand of the operator.

Specified by:
getRightHandOperand in interface BinaryOperatorNode
Returns:
The right-hand operand