@Override public Path transform(P_ReverseLink path, Node node) { Path result = path.getNode() == node ? path : new P_ReverseLink(node) ; return result; }
@Override public void visit(P_ReverseLink path) { rsb.nav(path.getNode(), !reverse); }
@Override public Path transform(P_Link path, Node node) { Path result = new P_ReverseLink(node); return result; }
@Override public void visit(P_ReverseLink path) { result = new P_Link(path.getNode()); }
@Override public void visit(P_Link path) { result = new P_ReverseLink(path.getNode()); }
@Override public void visit(P_ReverseLink pathNode) { push(new P_ReverseLink(changeNode(pathNode.getNode()))); }
@Override public void visit(P_ReverseLink path) { Node newNode = applyNodeTransform(path.getNode()); Path newPath = pathTransform.transform(path, newNode); stack.push(newPath); }
public static P_Path0 createStep(Node predicate, boolean isFwd) { P_Path0 result = isFwd ? new P_Link(predicate) : new P_ReverseLink(predicate); return result; }
@Override public void visit(P_ReverseLink pathNode) { push(new P_ReverseLink(changeNode(pathNode.getNode()))); }
@Override public void visit(P_ReverseLink pathNode) { out.println("^") ; output(pathNode.getNode()) ; }
@Override public Path transform(P_Inverse path, Path subPath) { Path result = subPath instanceof P_Link ? new P_ReverseLink(((P_Path0)subPath).getNode()) : new P_Inverse(subPath); // Path result = // subPath instanceof P_Inverse ? ((P_Inverse)subPath).getSubPath() : // subPath instanceof P_Link ? new P_ReverseLink(((P_Path0)subPath).getNode()) : // subPath instanceof P_ReverseLink ? new P_Link(((P_Path0)subPath).getNode()) : // new P_Inverse(subPath); return result; } }
@Override public void visit(P_ReverseLink pathNode) { Op op = new OpTriple(new Triple(object, pathNode.getNode(), subject)) ; result = op ; }
@Override public Path make(ItemList list) { BuilderLib.checkLength(2, 2, list, "path reverse link: wanted 1 argument") ; return new P_ReverseLink(list.get(1).getNode()) ; } };
@Override public void visit(P_ReverseLink pathNode) { engine.flipDirection() ; Iterator<Node> nodes = engine.doOne(node, pathNode.getNode()) ; fill(nodes) ; engine.flipDirection() ; }
@Override public Path transform(P_NegPropSet path, List<Node> fwdNodes, List<Node> bwdNodes) { P_NegPropSet result = new P_NegPropSet(); for(Node node : fwdNodes) { result.add(new P_ReverseLink(node)); } for(Node node : bwdNodes) { result.add(new P_Link(node)); } return result; }
@Override public void visit(P_ReverseLink pathNode) { out.print("(") ; out.print(Tags.tagPathRev) ; out.print(" ") ; output(pathNode.getNode()) ; out.print(")") ; }
public static P_NegPropSet createNegPropSet(List<Node> fwdNodes, List<Node> bwdNodes) { P_NegPropSet result = new P_NegPropSet(); for(Node node : fwdNodes) { result.add(new P_Link(node)); } for(Node node : bwdNodes) { result.add(new P_ReverseLink(node)); } return result; }
@Override public void visit(P_NegPropSet path) { P_NegPropSet tmp = new P_NegPropSet(); for(Node node : path.getFwdNodes()) { tmp.add(new P_ReverseLink(node)); } for(Node node : path.getBwdNodes()) { tmp.add(new P_Link(node)); } result = tmp; }
case PNAME_LN: str = iri(); n = createNode(str) ; {if (true) return new P_ReverseLink(n) ;} break; case KW_A: jj_consume_token(KW_A); {if (true) return new P_ReverseLink(nRDFtype) ;} break; default:
case PNAME_LN: str = iri(); n = createNode(str) ; {if (true) return new P_ReverseLink(n) ;} break; case KW_A: jj_consume_token(KW_A); {if (true) return new P_ReverseLink(nRDFtype) ;} break; default: