org.hibernate.hql.internal.ast.tree
Class BinaryLogicOperatorNode
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.internal.ast.tree.Node
org.hibernate.hql.internal.ast.tree.SqlNode
org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
org.hibernate.hql.internal.ast.tree.BinaryLogicOperatorNode
- All Implemented Interfaces:
- antlr.collections.AST, Serializable, BinaryOperatorNode, InitializeableNode, OperatorNode
- Direct Known Subclasses:
- InLogicOperatorNode
public class BinaryLogicOperatorNode
- extends HqlSqlWalkerNode
- implements BinaryOperatorNode
Contract for nodes representing binary operators.
- See Also:
- Serialized Form
Fields inherited from class antlr.BaseAST |
down, right |
Method Summary |
protected Type |
extractDataType(Node operand)
|
protected static String[] |
extractMutationTexts(Node operand,
int count)
|
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)
|
protected void |
translate(int valueElements,
int comparisonType,
String comparisonText,
String[] lhsElementTexts,
String[] rhsElementTexts,
ParameterSpecification lhsEmbeddedCompositeParameterSpecification,
ParameterSpecification rhsEmbeddedCompositeParameterSpecification,
antlr.collections.AST container)
|
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)
translate
protected void translate(int valueElements,
int comparisonType,
String comparisonText,
String[] lhsElementTexts,
String[] rhsElementTexts,
ParameterSpecification lhsEmbeddedCompositeParameterSpecification,
ParameterSpecification rhsEmbeddedCompositeParameterSpecification,
antlr.collections.AST container)
extractMutationTexts
protected static String[] extractMutationTexts(Node operand,
int count)
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
- Returns:
- The expression's data type.
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
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.