当前页面:
在线文档首页 >
Hibernate 3.2.3 正式版 API 英文文档
BinaryLogicOperatorNode (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档
org.hibernate.hql.ast.tree
Class BinaryLogicOperatorNode
java.lang.Object
antlr.BaseAST
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
- 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
Fields inherited from class antlr.BaseAST |
down, right |
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 |
BinaryLogicOperatorNode
public BinaryLogicOperatorNode()
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