Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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.AbstractSelectExpression
org.hibernate.hql.ast.tree.BinaryArithmeticOperatorNode
public class BinaryArithmeticOperatorNode
extends AbstractSelectExpression
implements BinaryOperatorNode, DisplayableNode
Method 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 SemanticException
Appends 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.