P_NegPropSet pFwd = new P_NegPropSet() ; for ( P_Path0 p : forwards ) pFwd.add(p) ; P_NegPropSet pBwd = new P_NegPropSet() ; for ( P_Path0 p : backwards ) pBwd.add(p) ;
@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; }
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 pathNotOneOf) { P_NegPropSet retval = new P_NegPropSet(); for (Path p : pathNotOneOf.getNodes()) { p.visit(this); retval.add((P_Path0) pop()); } push(retval); }
@Override public void visit(P_NegPropSet pathNotOneOf) { P_NegPropSet retval = new P_NegPropSet(); for (Path p : pathNotOneOf.getNodes()) { p.visit(this); retval.add((P_Path0) pop()); } push(retval); }
@Override public Path make(ItemList list) { BuilderLib.checkLengthAtLeast(1, list, "path: negative property set: must be at least one element") ; P_NegPropSet pNegClass = new P_NegPropSet() ; for ( int i = 1 ; i < list.size() ; i++ ) { Item item = list.get(i) ; // Node or reverse? Path p = build(item) ; if ( ! ( p instanceof P_Path0 ) ) BuilderLib.broken(item, "Not a property or reverse property") ; pNegClass.add((P_Path0)p) ; } return pNegClass ; } } ;
@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; }
final public Path PathNegatedPropertySet() throws ParseException { P_Path0 p ; P_NegPropSet pNegSet ; pNegSet = new P_NegPropSet() ; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IRIref:
final public Path PathNegatedPropertySet() throws ParseException { P_Path0 p ; P_NegPropSet pNegSet ; pNegSet = new P_NegPropSet() ; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IRIref: