public class SpinxFunction extends Object implements TransientFunction
| Constructor and Description |
|---|
SpinxFunction(String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Argument arg) |
Value |
evaluate(ValueFactory valueFactory,
Value... args)
Evaluate the function over the supplied input arguments, using the supplied
ValueFactory to produce the
result. |
List<Argument> |
getArguments() |
URI |
getReturnType() |
String |
getScript() |
ScriptEngine |
getScriptEngine() |
String |
getURI() |
void |
setReturnType(URI datatype) |
void |
setScript(String script) |
void |
setScriptEngine(ScriptEngine engine) |
String |
toString() |
public SpinxFunction(String uri)
public void setScriptEngine(ScriptEngine engine)
public ScriptEngine getScriptEngine()
public void setScript(String script)
public String getScript()
public void setReturnType(URI datatype)
public URI getReturnType()
public void addArgument(Argument arg)
public Value evaluate(ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException
FunctionValueFactory to produce the
result.evaluate in interface FunctionvalueFactory - a ValueFactory to use for producing the function result.args - the function input arguments.ValueExprEvaluationExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.