@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, wait
asSerializableString
public TypeLiteralExpression(DataType dataType)
public DataType getOutputDataType()
ResolvedExpression
getOutputDataType
in interface ResolvedExpression
public List<ResolvedExpression> getResolvedChildren()
getResolvedChildren
in interface ResolvedExpression
public String asSummaryString()
Expression
asSummaryString
in interface Expression
public List<Expression> getChildren()
getChildren
in interface Expression
public <R> R accept(ExpressionVisitor<R> visitor)
accept
in interface Expression
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.