public abstract class CastExpression extends Object implements KiviPredExpression
Modifier and Type | Field and Description |
---|---|
protected KiviPredExpression |
expression |
Modifier and Type | Method and Description |
---|---|
void |
generatePred(kv.NP pred,
TableModel model,
Reg reg) |
Type |
getType(TableModel tableModel)
Returns the result type of the expression, evaluated against a given TableModel
|
boolean |
isConstant()
Returns whether the expression result has a constant value, it means, does not depend on any tuple field
values.
|
boolean |
isNullable()
Returns whether the result of the expression can be null.
|
String |
toString()
This method should be used for debug purposes, and it should show the complete nesting
of the expressions
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluateExpression
protected KiviPredExpression expression
public void generatePred(kv.NP pred, TableModel model, Reg reg)
generatePred
in interface KiviPredExpression
public Type getType(TableModel tableModel)
Expression
getType
in interface Expression
tableModel
- TableModel to be evaluatedpublic boolean isConstant()
Expression
isConstant
in interface Expression
public boolean isNullable()
Expression
isNullable
in interface Expression
public String toString()
Expression
toString
in interface Expression
toString
in class Object
Copyright © 2020. All rights reserved.