com.hp.hpl.jena.sparql.function.library
Class FN_Matches
java.lang.Object
com.hp.hpl.jena.sparql.function.library.FN_Matches
- All Implemented Interfaces:
- Function
public class FN_Matches
- extends Object
- implements Function
Function for XPath fn:matches
Method Summary |
void |
build(String uri,
ExprList args)
Called during query plan construction immediately after the
construction of the extension instance. |
NodeValue |
exec(Binding binding,
ExprList args,
String uri,
FunctionEnv env)
Test a list of values - argument will not be null but
may have the wrong number of arguments. |
FN_Matches
public FN_Matches()
build
public void build(String uri,
ExprList args)
- Description copied from interface:
Function
- Called during query plan construction immediately after the
construction of the extension instance.
Can throw ExprBuildException if something is wrong (like wrong number of arguments).
- Specified by:
build
in interface Function
args
- The parsed arguements
exec
public NodeValue exec(Binding binding,
ExprList args,
String uri,
FunctionEnv env)
- Description copied from interface:
Function
- Test a list of values - argument will not be null but
may have the wrong number of arguments.
FunctionBase provides a more convenient way to implement a function.
Can throw ExprEvalsException if something goes wrong.
- Specified by:
exec
in interface Function
- Parameters:
binding
- The current solutionargs
- A list of unevaluated expressionsuri
- The name of thisenv
- The execution context
- Returns:
- NodeValue - a value
Licenced under the Apache License, Version 2.0