| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
antlr.CommonASTorg.hibernate.hql.ast.tree.Nodeorg.hibernate.hql.ast.tree.SqlNodeorg.hibernate.hql.ast.tree.HqlSqlWalkerNodeorg.hibernate.hql.ast.tree.AbstractSelectExpressionorg.hibernate.hql.ast.tree.BinaryArithmeticOperatorNodepublic class BinaryArithmeticOperatorNodeextends AbstractSelectExpressionimplements BinaryOperatorNode, DisplayableNodeMethod Summary | |
Type |
|
String |
|
Node |
|
Node |
|
void | |
void |
|
Methods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression | |
getAlias, getFromElement, isConstructor, isReturnableEntity, isScalar, setAlias | |
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode | |
getASTFactory, getAliasGenerator, getSessionFactoryHelper, getWalker, initialize | |
Methods inherited from class org.hibernate.hql.ast.tree.SqlNode | |
getDataType, getOriginalText, setDataType, setText | |
Methods inherited from class org.hibernate.hql.ast.tree.Node | |
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize | |
public Type getDataType()
Figure out the type of the binary expression by looking at the types of the operands. Sometimes we don't know both types, if, for example, one is a parameter.
- Specified by:
- getDataType in interface OperatorNode
- getDataType in interface SelectExpression
- Overrides:
- getDataType in interface SqlNode
public String getDisplayText()
Returns additional display text for the AST node.
- Specified by:
- getDisplayText in interface DisplayableNode
- Returns:
- String - The additional display text.
public Node getLeftHandOperand()
Retrieves the left-hand operand of the operator.
- Specified by:
- getLeftHandOperand in interface BinaryOperatorNode
- Returns:
- The left-hand operand
public Node getRightHandOperand()
Retrieves the right-hand operand of the operator.
- Specified by:
- getRightHandOperand in interface BinaryOperatorNode
- Returns:
- The right-hand operand
public void initialize()
throws SemanticException
- Specified by:
- initialize in interface OperatorNode
public void setScalarColumnText(int i)
throws SemanticExceptionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')
- Specified by:
- setScalarColumnText in interface SelectExpression
- Parameters:
i- The index of the select expression in the projection list.