java.lang.Object
org.apache.jena.sparql.function.user.UserDefinedFunctionDefinition
org.apache.jena.sparql.function.user.UserDefinedFunction
- All Implemented Interfaces:
Function
Represents a user defined function
-
Field Summary
Fields inherited from class org.apache.jena.sparql.function.user.UserDefinedFunctionDefinition
warnOnUnusedVariable
-
Constructor Summary
ConstructorDescriptionUserDefinedFunction
(String url, Expr e, List<Var> argList) Creates a user defined functionCreates a new user defined function -
Method Summary
Modifier and TypeMethodDescriptionvoid
Builds the expression substituting the arguments given into the base expression to yield the actual expression to evaluatevoid
Builds the expression substituting the arguments given into the base expression to yield the actual expression to evaluateexec
(Binding binding, ExprList args, String uri, FunctionEnv env) Executes the functionGets the actual expression that was built for the function, assumingbuild(String, ExprList, Context)
has been calledMethods inherited from class org.apache.jena.sparql.function.user.UserDefinedFunctionDefinition
getArgList, getBaseExpr, getUri, newFunctionInstance
-
Constructor Details
-
UserDefinedFunction
Creates a new user defined function- Parameters:
def
- Function Definition
-
UserDefinedFunction
Creates a user defined function- Parameters:
url
- Function URLe
- ExpressionargList
- Arguments
-
-
Method Details
-
build
Builds the expression substituting the arguments given into the base expression to yield the actual expression to evaluate- Throws:
SSE_ExprBuildException
- Thrown if an expression cannot be generated
-
build
Builds the expression substituting the arguments given into the base expression to yield the actual expression to evaluate- Specified by:
build
in interfaceFunction
- Parameters:
uri
- The function URIargs
- The parsed argumentscontext
- The build context.- Throws:
SSE_ExprBuildException
- Thrown if an expression cannot be generated
-
exec
Executes the function -
getActualExpr
Gets the actual expression that was built for the function, assumingbuild(String, ExprList, Context)
has been called- Returns:
- Expression if built, null otherwise
-