public class KiviConstantExpression extends Object implements KiviPredExpression, Constant
Constructor and Description |
---|
KiviConstantExpression(Object value,
Type type) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluateExpression(Tuple tuple) |
void |
generatePred(kv.NP pred,
TableModel model,
Reg dest) |
Type |
getType(TableModel tableModel)
Returns the result type of the expression, evaluated against a given TableModel
|
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
isConstant, isNullable
public void generatePred(kv.NP pred, TableModel model, Reg dest)
generatePred
in interface KiviPredExpression
public Object evaluateExpression(Tuple tuple)
evaluateExpression
in interface KiviPredExpression
public Type getType(TableModel tableModel)
Expression
getType
in interface Expression
getType
in interface Constant
tableModel
- TableModel to be evaluatedpublic String toString()
Expression
toString
in interface Expression
toString
in class Object
Copyright © 2020. All rights reserved.