use of org.apache.jena.sparql.engine.main.VarFinder in project jena by apache.
the class TestVarFinder method varfind.
private static void varfind(String string, String[] varsFixed, String[] varsOpt, String[] varsFilter, String[] varsFilterOnly) {
Op op = SSE.parseOp(string);
VarFinder vf = VarFinder.process(op);
if (varsFixed != null)
check(varsFixed, vf.getFixed());
if (varsOpt != null)
check(varsOpt, vf.getOpt());
if (varsFilter != null)
check(varsFilter, vf.getFilter());
if (varsFilterOnly != null)
check(varsFilterOnly, vf.getFilterOnly());
}