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) |
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
evaluate
in interface Function
ValueExprEvaluationException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.