public abstract class AbstractType extends Object implements Type
abstract
class realises the inherited method getEvaluator(FunctionCall,Context)
only, because a FunctionCall
evaluation is independent from the Types
the parameters
are evaluated to.
If the FunctionCall
"calls" a PredefinedFunction
,
the method Type.getEvaluator(PredefinedFunction,Evaluator)
will be called on the Type
the parameter is evaluated to.
FunctionCallEvaluator
Constructor and Description |
---|
AbstractType() |
Modifier and Type | Method and Description |
---|---|
Evaluator |
getEvaluator(FunctionCall expr,
Context context)
Returns the
Evaluator for the specified
FunctionCall which parameter expressions
can be several Types when evaluated. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createVariable, getEvaluator, getEvaluator, getEvaluator, getEvaluator, getEvaluator, getRepresentationClass
public Evaluator getEvaluator(FunctionCall expr, Context context)
Evaluator
for the specified
FunctionCall
which parameter expressions
can be several Types
when evaluated. The appropriate
Function
to the FunctionCall
will be get from the
specified Context
. The returned Evaluator
will be a FunctionCallEvaluator
in any case.getEvaluator
in interface Type
expr
- the FunctionCall
the Evaluator
is to be returned for.context
- the Context
, the Function - the
FunctionCall
"is calling" - will be got from.
Evaluator
for the specified
FunctionCall
.FunctionCall.getEvaluator(Type,Context)