public class BinaryArithmeticOperatorNode extends AbstractSelectExpression implements BinaryOperatorNode, DisplayableNode
| Constructor and Description |
|---|
BinaryArithmeticOperatorNode() |
| Modifier and Type | Method and Description |
|---|---|
Type |
getDataType()
Figure out the type of the binary expression by looking at
the types of the operands.
|
java.lang.String |
getDisplayText()
Returns additional display text for the AST node.
|
Node |
getLeftHandOperand()
Retrieves the left-hand operand of the operator.
|
Node |
getRightHandOperand()
Retrieves the right-hand operand of the operator.
|
void |
initialize()
Called by the tree walker during hql-sql semantic analysis
after the operator sub-tree is completely built.
|
void |
setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.
|
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, isScalar, setAlias, setScalarColumngetAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializegetOriginalText, setDataType, setTextgetColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeaddChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetTextpublic void initialize()
throws antlr.SemanticException
OperatorNodeinitialize in interface OperatorNodeantlr.SemanticExceptionpublic Type getDataType()
getDataType in interface OperatorNodegetDataType in interface SelectExpressiongetDataType in class SqlNodepublic void setScalarColumnText(int i)
throws antlr.SemanticException
SelectExpressionsetScalarColumnText in interface SelectExpressioni - The index of the select expression in the projection list.antlr.SemanticException - if a semantic error occurspublic Node getLeftHandOperand()
getLeftHandOperand in interface BinaryOperatorNodepublic Node getRightHandOperand()
getRightHandOperand in interface BinaryOperatorNodepublic java.lang.String getDisplayText()
DisplayableNodegetDisplayText in interface DisplayableNodeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.