@Override public void visit(P_Mod pathMod) { if ( pathMod.getMin() > pathMod.getMax() ) throw new ARQException("Bad path: "+pathMod) ; Op op = null ; for ( long i = pathMod.getMin() ; i <= pathMod.getMax() ; i++ ) { Path p = PathFactory.pathFixedLength(pathMod.getSubPath(), i) ; Op sub = transformPath(null, subject, p, object) ; op = union(op, sub) ; } result = op ; }
@Override public void visit(P_Mod pathMod) { out.print("(") ; out.print(Tags.tagPathMod) ; out.print(" ") ; out.print(modInt(pathMod.getMin())) ; out.print(" ") ; out.print(modInt(pathMod.getMax())) ; writeOneLiner(pathMod.getSubPath()) ; out.print(")") ; }
public void visit(P_Mod pathMod) { out.print("(") ; out.print(Tags.tagPathMod) ; out.print(" ") ; out.print(modInt(pathMod.getMin())) ; out.print(" ") ; out.print(modInt(pathMod.getMax())) ; writeOneLiner(pathMod.getSubPath()) ; out.print(")") ; }
long min1 = pathMod.getMin() ; long max1 = pathMod.getMax() ;
@Override public void visit(P_Mod pathMod) { // do..Or.. need to take a visited set. if ( pathMod.isZeroOrMore() ) { // :p{0,} engine.doOneOrMoreN(pathMod.getSubPath(), node, output) ; return ; } if ( pathMod.isOneOrMore() ) { engine.doOneOrMoreN(pathMod.getSubPath(), node, output) ; return ; } if ( pathMod.isFixedLength() ) engine.doFixedLengthPath(pathMod.getSubPath(), node, pathMod.getFixedLength(), output) ; else engine.doMultiLengthPath(pathMod.getSubPath(), node, pathMod.getMin(), pathMod.getMax(), output) ; }