接口 SelectExpression
-
- 所有已知子接口:
AggregatedSelectExpression
- 所有已知实现类:
AbstractMapComponentNode,AbstractNullnessCheckNode,AbstractSelectExpression,AggregateNode,BinaryArithmeticOperatorNode,BinaryLogicOperatorNode,BooleanLiteralNode,CastFunctionNode,CollectionFunction,ConstructorNode,CountNode,DotNode,FromReferenceNode,IdentNode,IndexNode,InLogicOperatorNode,IsNotNullLogicOperatorNode,IsNullLogicOperatorNode,LiteralNode,MapEntryNode,MapKeyNode,MapValueNode,MethodNode,NullNode,QueryNode,SearchedCaseNode,SelectExpressionImpl,SimpleCaseNode,UnaryArithmeticNode,UnaryLogicOperatorNode
public interface SelectExpressionRepresents an element of a projection list, i.e. a select expression.- 作者:
- josh
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetAlias()TypegetDataType()Returns the data type of the select expression.FromElementgetFromElement()Returns the FROM element that this expression refers to.intgetScalarColumnIndex()Gets index of the select expression in the projection list.booleanisConstructor()Returns true if the element is a constructor (e.g. new Foo).booleanisReturnableEntity()Returns true if this select expression represents an entity that can be returned.booleanisScalar()voidsetAlias(String alias)voidsetScalarColumn(int i)Sets the index and text for select expression in the projection list.voidsetScalarColumnText(int i)Appends AST nodes that represent the columns after the current AST node.voidsetText(String text)Sets the text of the node.
-
-
-
方法详细资料
-
getDataType
Type getDataType()
Returns the data type of the select expression.- 返回:
- The data type of the select expression.
-
setScalarColumnText
void setScalarColumnText(int i) throws antlr.SemanticExceptionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
setScalarColumn
void setScalarColumn(int i) throws antlr.SemanticExceptionSets the index and text for select expression in the projection list.- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
getScalarColumnIndex
int getScalarColumnIndex()
Gets index of the select expression in the projection list.- 返回:
- The index of the select expression in the projection list.
-
getFromElement
FromElement getFromElement()
Returns the FROM element that this expression refers to.- 返回:
- The FROM element.
-
isConstructor
boolean isConstructor()
Returns true if the element is a constructor (e.g. new Foo).- 返回:
- true if the element is a constructor (e.g. new Foo).
-
isReturnableEntity
boolean isReturnableEntity() throws antlr.SemanticExceptionReturns true if this select expression represents an entity that can be returned.- 返回:
- true if this select expression represents an entity that can be returned.
- 抛出:
antlr.SemanticException- if a semantic error occurs
-
setText
void setText(String text)
Sets the text of the node.- 参数:
text- the new node text.
-
isScalar
boolean isScalar() throws antlr.SemanticException- 抛出:
antlr.SemanticException
-
setAlias
void setAlias(String alias)
-
getAlias
String getAlias()
-
-