Example #1
0
 @Override
 public Void visitFetchPath(FetchPathContext ctx) {
   this.fetchPathBuilder = QueryPaths.begin();
   super.visitFetchPath(ctx);
   this.queryPaths.add(this.fetchPathBuilder.end());
   return null;
 }
Example #2
0
 @Override
 public Void visitSingleOrderPath(SingleOrderPathContext ctx) {
   this.simpleOrderPathBuilder =
       this.postOrder ? QueryPaths.postOrderBy() : QueryPaths.preOrderBy();
   super.visitSingleOrderPath(ctx);
   if (is(ctx.sortMode, QueryPathParser.DESC)) {
     this.queryPaths.add(this.simpleOrderPathBuilder.desc());
   } else {
     this.queryPaths.add(this.simpleOrderPathBuilder.asc());
   }
   return null;
 }