示例#1
0
 @Override
 public boolean accept(final ASTVisitor visitor) {
   for (final Expr e : preds) {
     visitor.enterFocus();
     if (!e.accept(visitor)) return false;
     visitor.exitFocus();
   }
   return root.accept(visitor);
 }
示例#2
0
文件: Path.java 项目: runeengh/basex
 @Override
 public boolean accept(final ASTVisitor visitor) {
   if (root == null) {
     if (!visitor.lock(DBLocking.CTX)) return false;
   } else if (!root.accept(visitor)) {
     return false;
   }
   visitor.enterFocus();
   if (!visitAll(visitor, steps)) return false;
   visitor.exitFocus();
   return true;
 }