@PublicEvolving public final class TypeLiteralExpression extends Object implements ResolvedExpression
DataType as a literal.
Expressing a type is primarily needed for casting operations. This expression simplifies the
Expression design as it makes CallExpression the only expression that takes
subexpressions.
| 构造器和说明 |
|---|
TypeLiteralExpression(DataType dataType) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(ExpressionVisitor<R> visitor) |
String |
asSummaryString()
Returns a string that summarizes this expression for printing to a console.
|
boolean |
equals(Object o) |
List<Expression> |
getChildren() |
DataType |
getOutputDataType()
Returns the data type of the computation result.
|
List<ResolvedExpression> |
getResolvedChildren() |
int |
hashCode() |
String |
toString() |
asSerializableStringpublic TypeLiteralExpression(DataType dataType)
public DataType getOutputDataType()
ResolvedExpressiongetOutputDataType 在接口中 ResolvedExpressionpublic List<ResolvedExpression> getResolvedChildren()
getResolvedChildren 在接口中 ResolvedExpressionpublic String asSummaryString()
ExpressionasSummaryString 在接口中 Expressionpublic List<Expression> getChildren()
getChildren 在接口中 Expressionpublic <R> R accept(ExpressionVisitor<R> visitor)
accept 在接口中 ExpressionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.