public class BinaryLogicOperatorNode extends HqlSqlWalkerNode implements BinaryOperatorNode
Constructor and Description |
---|
BinaryLogicOperatorNode() |
Modifier and Type | Method and Description |
---|---|
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) |
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
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
public void initialize() throws antlr.SemanticException
initialize
in interface OperatorNode
antlr.SemanticException
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, antlr.collections.AST container)
public Type getDataType()
OperatorNode
getDataType
in interface OperatorNode
getDataType
in class SqlNode
public Node getLeftHandOperand()
getLeftHandOperand
in interface BinaryOperatorNode
public Node getRightHandOperand()
getRightHandOperand
in interface BinaryOperatorNode
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.