类 BinaryArithmeticOperatorNode
- 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.AbstractSelectExpression
-
- org.hibernate.hql.internal.ast.tree.BinaryArithmeticOperatorNode
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,BinaryOperatorNode,DisplayableNode,InitializeableNode,OperatorNode,SelectExpression
public class BinaryArithmeticOperatorNode extends AbstractSelectExpression implements BinaryOperatorNode, DisplayableNode
Nodes which represent binary arithmetic operators.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BinaryArithmeticOperatorNode()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypegetDataType()Figure out the type of the binary expression by looking at the types of the operands.StringgetDisplayText()Returns additional display text for the AST node.NodegetLeftHandOperand()Retrieves the left-hand operand of the operator.NodegetRightHandOperand()Retrieves the right-hand operand of the operator.voidinitialize()Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.voidsetScalarColumnText(int i)Appends AST nodes that represent the columns after the current AST node.-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractSelectExpression
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, isScalar, setAlias, setScalarColumn
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
-
从类继承的方法 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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpression
setText
-
-
-
-
方法详细资料
-
initialize
public void initialize() throws antlr.SemanticException从接口复制的说明:OperatorNodeCalled by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.- 指定者:
initialize在接口中OperatorNode- 抛出:
antlr.SemanticException
-
getDataType
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.- 指定者:
getDataType在接口中OperatorNode- 指定者:
getDataType在接口中SelectExpression- 覆盖:
getDataType在类中SqlNode- 返回:
- The expression's data type.
-
setScalarColumnText
public void setScalarColumnText(int i) throws antlr.SemanticException从接口复制的说明:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- 指定者:
setScalarColumnText在接口中SelectExpression- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
getLeftHandOperand
public Node getLeftHandOperand()
Retrieves the left-hand operand of the operator.- 指定者:
getLeftHandOperand在接口中BinaryOperatorNode- 返回:
- The left-hand operand
-
getRightHandOperand
public Node getRightHandOperand()
Retrieves the right-hand operand of the operator.- 指定者:
getRightHandOperand在接口中BinaryOperatorNode- 返回:
- The right-hand operand
-
getDisplayText
public String getDisplayText()
从接口复制的说明:DisplayableNodeReturns additional display text for the AST node.- 指定者:
getDisplayText在接口中DisplayableNode- 返回:
- String - The additional display text.
-
-