public static ExpandList create(){ return new ExpandList(); }
@Override public void visit(ASTQuery ast) { process(ast); }
transform.add(ExpandList.create());
transform.add(ExpandList.create());
@Override public void visit(ASTQuery ast) { process(ast); }
public static ExpandList create(){ return new ExpandList(); }
void process(ASTQuery ast) { process(ast, ast.getBody()); }
void process(ASTQuery ast) { process(ast, ast.getBody()); }
void process(ASTQuery ast, Exp exp) { for (int i = 0; i<exp.getBody().size(); i++){ Exp ee = exp.getBody().get(i); if (ee.isRDFList()) { RDFList l = (RDFList) ee; Exp lp = ast.path(l); exp.getBody().set(i, lp); } else { process(ast, ee); } } }
void process(ASTQuery ast, Exp exp) { for (int i = 0; i<exp.getBody().size(); i++){ Exp ee = exp.getBody().get(i); if (ee.isRDFList()) { RDFList l = (RDFList) ee; Exp lp = ast.path(l); exp.getBody().set(i, lp); } else { process(ast, ee); } } }