public class EvalFunction extends AbstractSpinFunction implements Function
Constructor and Description |
---|
EvalFunction() |
EvalFunction(SpinParser parser) |
Modifier and Type | Method and Description |
---|---|
protected static void |
addArguments(Query query,
Value... args) |
Value |
evaluate(ValueFactory valueFactory,
Value... args)
Evaluate the function over the supplied input arguments, using the supplied
ValueFactory to produce the
result. |
SpinParser |
getSpinParser() |
void |
setSpinParser(SpinParser parser) |
addBindings, getCurrentQueryPreparer, getQueryPreparer, getURI, setQueryPreparer
public EvalFunction()
public EvalFunction(SpinParser parser)
public SpinParser getSpinParser()
public void setSpinParser(SpinParser parser)
public Value evaluate(ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException
Function
ValueFactory
to produce the
result.evaluate
in interface Function
valueFactory
- a ValueFactory
to use for producing the function result.args
- the function input arguments.ValueExprEvaluationException
protected static void addArguments(Query query, Value... args) throws ValueExprEvaluationException
ValueExprEvaluationException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.