@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.
| Constructor and Description |
|---|
TypeLiteralExpression(DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
<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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasSerializableStringpublic TypeLiteralExpression(DataType dataType)
public DataType getOutputDataType()
ResolvedExpressiongetOutputDataType in interface ResolvedExpressionpublic List<ResolvedExpression> getResolvedChildren()
getResolvedChildren in interface ResolvedExpressionpublic String asSummaryString()
ExpressionasSummaryString in interface Expressionpublic List<Expression> getChildren()
getChildren in interface Expressionpublic <R> R accept(ExpressionVisitor<R> visitor)
accept in interface ExpressionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.