类 DotNode
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,PathNode,ResolvableNode,SelectExpression,TableReferenceNode
public class DotNode extends FromReferenceNode implements DisplayableNode, SelectExpression, TableReferenceNode
Represents a reference to a property or alias expression. This should duplicate the relevant behaviors in PathExpressionParser.- 作者:
- Joshua Davis
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classDotNode.DereferenceTypestatic interfaceDotNode.IllegalCollectionDereferenceExceptionBuilder
-
字段概要
字段 修饰符和类型 字段 说明 static DotNode.IllegalCollectionDereferenceExceptionBuilderDEF_ILLEGAL_COLL_DEREF_EXCP_BUILDERstatic DotNode.IllegalCollectionDereferenceExceptionBuilderILLEGAL_COLL_DEREF_EXCP_BUILDERstatic booleanregressionStyleJoinSuppressionstatic booleanuseThetaStyleImplicitJoins-
从类继承的字段 org.hibernate.hql.internal.ast.tree.FromReferenceNode
ROOT_LEVEL
-
-
构造器概要
构造器 构造器 说明 DotNode()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypegetDataType()Returns the data type of the select expression.StringgetDisplayText()Returns additional display text for the AST node.FromElementgetImpliedJoin()Sub-classes can override this method if they produce implied joins (e.g.FromReferenceNodegetLhs()StringgetPath()Returns the full path of the node.StringgetPropertyPath()String[]getReferencedTables()Returns table names which are referenced by this node.voidresolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent, antlr.collections.AST parentPredicate)Does the work of resolving an identifier or a dotvoidresolveFirstChild()Resolves the left hand side of the DOT.voidresolveIndex(antlr.collections.AST parent)Does the work of resolving an index [].voidresolveInFunctionCall(boolean generateJoin, boolean implicitJoin)Does the work of resolving inside of the scope of a function callvoidresolveSelectExpression()Special method to resolve expressions in the SELECT list.voidsetFetch(boolean fetch)voidsetJoinType(JoinType joinType)Sets the join type for this '.' node structure.voidsetPropertyPath(String propertyPath)voidsetResolvedConstant(String text)voidsetScalarColumnText(int i)Appends AST nodes that represent the columns after the current AST node.-
从类继承的方法 org.hibernate.hql.internal.ast.tree.FromReferenceNode
getFromElement, isFromElementUpdateOrDeleteRoot, isResolved, isReturnableEntity, prepareForDot, recursiveResolve, recursiveResolve, resolve, resolve, resolve, setFromElement, setResolved
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractSelectExpression
getAlias, getScalarColumnIndex, isConstructor, 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.InitializeableNode
initialize
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpression
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, isScalar, setAlias, setScalarColumn, setText
-
-
-
-
字段详细资料
-
useThetaStyleImplicitJoins
public static boolean useThetaStyleImplicitJoins
-
regressionStyleJoinSuppression
public static boolean regressionStyleJoinSuppression
-
DEF_ILLEGAL_COLL_DEREF_EXCP_BUILDER
public static final DotNode.IllegalCollectionDereferenceExceptionBuilder DEF_ILLEGAL_COLL_DEREF_EXCP_BUILDER
-
ILLEGAL_COLL_DEREF_EXCP_BUILDER
public static DotNode.IllegalCollectionDereferenceExceptionBuilder ILLEGAL_COLL_DEREF_EXCP_BUILDER
-
-
方法详细资料
-
setJoinType
public void setJoinType(JoinType joinType)
Sets the join type for this '.' node structure.- 参数:
joinType- The type of join to use.- 另请参阅:
JoinFragment
-
getDisplayText
public String getDisplayText()
从接口复制的说明:DisplayableNodeReturns additional display text for the AST node.- 指定者:
getDisplayText在接口中DisplayableNode- 覆盖:
getDisplayText在类中FromReferenceNode- 返回:
- String - The additional display text.
-
resolveFirstChild
public void resolveFirstChild() throws antlr.SemanticExceptionResolves the left hand side of the DOT.- 覆盖:
resolveFirstChild在类中FromReferenceNode- 抛出:
antlr.SemanticException
-
resolveInFunctionCall
public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving inside of the scope of a function call- 指定者:
resolveInFunctionCall在接口中ResolvableNode- 覆盖:
resolveInFunctionCall在类中FromReferenceNode- 抛出:
antlr.SemanticException
-
resolveIndex
public void resolveIndex(antlr.collections.AST parent) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving an index [].- 指定者:
resolveIndex在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
resolve
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent, antlr.collections.AST parentPredicate) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving an identifier or a dot- 指定者:
resolve在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
getImpliedJoin
public FromElement getImpliedJoin()
从类复制的说明:FromReferenceNodeSub-classes can override this method if they produce implied joins (e.g. DotNode).- 覆盖:
getImpliedJoin在类中FromReferenceNode- 返回:
- an implied join created by this from reference.
-
getDataType
public Type getDataType()
从接口复制的说明:SelectExpressionReturns the data type of the select expression.- 指定者:
getDataType在接口中SelectExpression- 覆盖:
getDataType在类中SqlNode- 返回:
- The data type of the select expression.
-
getReferencedTables
public String[] getReferencedTables()
从接口复制的说明:TableReferenceNodeReturns table names which are referenced by this node. If the tables can not be determined it returns null.- 指定者:
getReferencedTables在接口中TableReferenceNode- 返回:
- table names or null.
-
setPropertyPath
public void setPropertyPath(String propertyPath)
-
getPropertyPath
public String getPropertyPath()
-
getLhs
public FromReferenceNode getLhs()
-
getPath
public String getPath()
Returns the full path of the node.- 指定者:
getPath在接口中PathNode- 覆盖:
getPath在类中FromReferenceNode- 返回:
- the full path of the node.
-
setFetch
public void setFetch(boolean fetch)
-
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
-
resolveSelectExpression
public void resolveSelectExpression() throws antlr.SemanticExceptionSpecial method to resolve expressions in the SELECT list.- 抛出:
antlr.SemanticException- if this cannot be resolved.
-
setResolvedConstant
public void setResolvedConstant(String text)
-
-