Exp compileEdge(Triple t, boolean opt) { Edge r = compiler.compile(t, ast.isInsertData()); Exp exp = Exp.create(EDGE, r); if (t.isType()) { Exp pe = pathType(ast, t); pe.setSystem(true); exp.setPath(pe); } if (t.isXPath()) { // deprecated ?x xpath() ?y exp.setType(EVAL); Filter xpath = compiler.compile(t.getXPath()); exp.setFilter(xpath); } else if (t.isPath()) { path(t, exp); } else if (ast.isCheck()) { check(t, r); } return exp; }
Exp compileEdge(Triple t, boolean opt) { Edge r = compiler.compile(t, ast.isInsertData()); Exp exp = Exp.create(EDGE, r); if (t.isType()) { Exp pe = pathType(ast, t); pe.setSystem(true); exp.setPath(pe); } if (t.isXPath()) { // deprecated ?x xpath() ?y exp.setType(EVAL); Filter xpath = compiler.compile(t.getXPath()); exp.setFilter(xpath); } else if (t.isPath()) { path(t, exp); } else if (ast.isCheck()) { check(t, r); } return exp; }