Package org.hibernate.hql.ast.tree
Class UnaryArithmeticNode
java.lang.Object
antlr.BaseAST
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.UnaryArithmeticNode
- All Implemented Interfaces:
antlr.collections.AST,Serializable,InitializeableNode,OperatorNode,SelectExpression,UnaryOperatorNode
- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the data type for the overall operator expression.Retrievs the node representing the operator's single operand.voidCalled 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.Methods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, isScalar, setAlias, setScalarColumnMethods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods inherited from class 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, xmlSerializeRootOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.hql.ast.tree.SelectExpression
setText
-
Constructor Details
-
UnaryArithmeticNode
public UnaryArithmeticNode()
-
-
Method Details
-
getDataType
Description copied from interface:OperatorNodeRetrieves the data type for the overall operator expression.- Specified by:
getDataTypein interfaceOperatorNode- Specified by:
getDataTypein interfaceSelectExpression- Overrides:
getDataTypein classSqlNode- Returns:
- The expression's data type.
-
setScalarColumnText
Description copied from interface:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- Specified by:
setScalarColumnTextin interfaceSelectExpression- Parameters:
i- The index of the select expression in the projection list.- Throws:
antlr.SemanticException
-
initialize
public void initialize()Description copied from interface:OperatorNodeCalled by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.- Specified by:
initializein interfaceOperatorNode
-
getOperand
Description copied from interface:UnaryOperatorNodeRetrievs the node representing the operator's single operand.- Specified by:
getOperandin interfaceUnaryOperatorNode- Returns:
- The operator's single operand.
-