Package org.hibernate.hql.ast.tree
Class IndexNode
- All Implemented Interfaces:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,PathNode,ResolvableNode,SelectExpression
Represents the [] operator and provides it's semantics.
- See Also:
-
Field Summary
Fields inherited from class org.hibernate.hql.ast.tree.FromReferenceNode
ROOT_LEVELFields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprepareForDot(String propertyName) voidresolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent) Does the work of resolving an identifier or a dotvoidresolveIndex(antlr.collections.AST parent) Does the work of resolving an an index [].voidsetScalarColumnText(int i) Appends AST nodes that represent the columns after the current AST node.Methods inherited from class org.hibernate.hql.ast.tree.FromReferenceNode
getDisplayText, getFromElement, getImpliedJoin, getPath, isResolved, isReturnableEntity, recursiveResolve, recursiveResolve, resolve, resolve, resolveFirstChild, resolveInFunctionCall, setFromElement, setResolvedMethods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression
getAlias, getScalarColumnIndex, isConstructor, 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
getDataType, 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.InitializeableNode
initializeMethods inherited from interface org.hibernate.hql.ast.tree.SelectExpression
getDataType, setText
-
Constructor Details
-
IndexNode
public IndexNode()
-
-
Method Details
-
setScalarColumnText
Description copied from interface:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- Parameters:
i- The index of the select expression in the projection list.- Throws:
antlr.SemanticException
-
prepareForDot
- Overrides:
prepareForDotin classFromReferenceNode- Throws:
antlr.SemanticException
-
resolveIndex
Description copied from interface:ResolvableNodeDoes the work of resolving an an index [].- Throws:
antlr.SemanticException
-
resolve
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent) throws antlr.SemanticException Description copied from interface:ResolvableNodeDoes the work of resolving an identifier or a dot- Throws:
antlr.SemanticException
-