exp, type
Modifier | Constructor and Description |
---|---|
protected |
GenericIterCalc(Exp exp)
Creates a GenericIterCalc without specifying child calculated
expressions.
|
protected |
GenericIterCalc(Exp exp,
Calc[] calcs)
Creates an GenericIterCalc.
|
Modifier and Type | Method and Description |
---|---|
TupleIterable |
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples.
|
TupleList |
evaluateList(Evaluator evaluator)
Evaluates an expression to yield a list of tuples.
|
SetType |
getType()
Returns the type of this expression.
|
accept, anyDepends, anyDependsButFirst, butDepends, collectArguments, dependsOn, getArguments, getCalcs, getName, getResultStyle, isWrapperFor, simplifyEvaluator, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, dependsOn, evaluate, getResultStyle, isWrapperFor, unwrap
protected GenericIterCalc(Exp exp)
Subclass should override AbstractCalc.getCalcs()
.
exp
- Source expressionpublic SetType getType()
Calc
getType
in interface Calc
getType
in class AbstractCalc
public TupleList evaluateList(Evaluator evaluator)
ListCalc
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
evaluateList
in interface ListCalc
evaluator
- Evaluation contextpublic TupleIterable evaluateIterable(Evaluator evaluator)
IterCalc
The Iterable is immutable.
evaluateIterable
in interface IterCalc
evaluator
- Evaluation contextCopyright © 2018 Hitachi Vantara. All rights reserved.