@Immutable public final class ConstantExpression extends RowExpression
| Constructor and Description |
|---|
ConstantExpression(Object value,
Type type) |
ConstantExpression(Optional<SourceLocation> sourceLocation,
Object value,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(RowExpressionVisitor<R,C> visitor,
C context) |
RowExpression |
canonicalize() |
static ConstantExpression |
createConstantExpression(Block valueBlock,
Type type) |
boolean |
equals(Object obj) |
Type |
getType() |
Object |
getValue() |
Block |
getValueBlock() |
int |
hashCode() |
boolean |
isNull() |
String |
toString() |
getSourceLocationpublic ConstantExpression(Optional<SourceLocation> sourceLocation, Object value, Type type)
public static ConstantExpression createConstantExpression(Block valueBlock, Type type)
public Block getValueBlock()
public Object getValue()
public boolean isNull()
public Type getType()
getType in class RowExpressionpublic String toString()
toString in class RowExpressionpublic int hashCode()
hashCode in class RowExpressionpublic boolean equals(Object obj)
equals in class RowExpressionpublic <R,C> R accept(RowExpressionVisitor<R,C> visitor, C context)
accept in class RowExpressionpublic RowExpression canonicalize()
canonicalize in class RowExpressionCopyright © 2012–2022. All rights reserved.