Class ITER_regex
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
-
- fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
-
- fr.mines_stetienne.ci.sparql_generate.iterator.library.ITER_regex
-
- All Implemented Interfaces:
IteratorFunction
public class ITER_regex extends IteratorFunctionBase
Iterator function iter:regex iterates over the input subsequences captured by the ith groups of every regex matches.See Live example
- Param 1 (string) is the input string;
- Param 2 (string) is a regular expression;
- Param 3..N (integers) are the numbers of the groups to capture.
- Author:
- Noorani Bakerally <noorani.bakerally at emse.fr>, Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description static String
URI
-
Fields inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
arguments
-
-
Constructor Summary
Constructors Constructor Description ITER_regex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkBuild(ExprList args)
Partially checks if the iterator function can be executed with the given arguments.List<List<NodeValue>>
exec(List<NodeValue> args)
IteratorFunction call to a list of evaluated argument values.-
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
exec
-
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
build, exec, getContext
-
-
-
-
Field Detail
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
exec
public List<List<NodeValue>> exec(List<NodeValue> args)
Description copied from class:IteratorFunctionBase
IteratorFunction call to a list of evaluated argument values.- Specified by:
exec
in classIteratorFunctionBase
- Parameters:
args
- -- Returns:
- -
-
checkBuild
public void checkBuild(ExprList args)
Description copied from class:IteratorStreamFunctionBase
Partially checks if the iterator function can be executed with the given arguments.- Specified by:
checkBuild
in classIteratorStreamFunctionBase
- Parameters:
args
- -
-
-