|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.function.user.UserDefinedFunctionDefinition
com.hp.hpl.jena.sparql.function.user.UserDefinedFunction
public class UserDefinedFunction
Represents a user defined function
| Field Summary |
|---|
| Fields inherited from class com.hp.hpl.jena.sparql.function.user.UserDefinedFunctionDefinition |
|---|
warnOnUnusedVariable |
| Constructor Summary | |
|---|---|
UserDefinedFunction(String url,
Expr e,
List<Var> argList)
Creates a user defined function |
|
UserDefinedFunction(UserDefinedFunctionDefinition def)
Creates a new user defined function |
|
| Method Summary | |
|---|---|
void |
build(String uri,
ExprList args)
Builds the expression substituting the arguments given into the base expression to yield the actual expression to evaluate |
NodeValue |
exec(Binding binding,
ExprList args,
String uri,
FunctionEnv env)
Executes the function |
Expr |
getActualExpr()
Gets the actual expression that was built for the function, assuming build(String, ExprList) has been called |
| Methods inherited from class com.hp.hpl.jena.sparql.function.user.UserDefinedFunctionDefinition |
|---|
getArgList, getBaseExpr, getUri, newFunctionInstance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserDefinedFunction(UserDefinedFunctionDefinition def)
def - Function Definition
public UserDefinedFunction(String url,
Expr e,
List<Var> argList)
url - Function URLe - ExpressionargList - Arguments| Method Detail |
|---|
public void build(String uri,
ExprList args)
build in interface Functionargs - The parsed arguments
ExprBuildException - Thrown if an expression cannot be generated
public NodeValue exec(Binding binding,
ExprList args,
String uri,
FunctionEnv env)
exec in interface Functionbinding - The current solutionargs - A list of unevaluated expressionsuri - The name of thisenv - The execution context
public Expr getActualExpr()
build(String, ExprList) has been called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||