public class UserDefinedFunction extends UserDefinedFunctionDefinition implements Function
warnOnUnusedVariable
Constructor and Description |
---|
UserDefinedFunction(String url,
Expr e,
List<Var> argList)
Creates a user defined function
|
UserDefinedFunction(UserDefinedFunctionDefinition def)
Creates a new user defined function
|
Modifier and Type | Method and Description |
---|---|
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 |
getArgList, getBaseExpr, getUri, newFunctionInstance
public UserDefinedFunction(UserDefinedFunctionDefinition def)
def
- Function Definitionpublic void build(String uri, ExprList args)
build
in interface Function
args
- The parsed argumentsExprBuildException
- Thrown if an expression cannot be generatedpublic NodeValue exec(Binding binding, ExprList args, String uri, FunctionEnv env)
public Expr getActualExpr()
build(String, ExprList)
has been calledLicenced under the Apache License, Version 2.0