示例#1
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;
 }
示例#2
0
 @Override
 public boolean accept(final ASTVisitor visitor) {
   if (!visitAll(visitor, specs)) return false;
   for (final Expr ng : preExpr) if (!ng.accept(visitor)) return false;
   for (final Var ng : post) if (!visitor.declared(ng)) return false;
   return true;
 }
示例#3
0
 @Override
 public final boolean accept(final ASTVisitor visitor) {
   if (exprs.length == 0) {
     if (!visitor.lock(null)) return false;
   } else {
     if (!dataLock(visitor, 0)) return false;
   }
   return super.accept(visitor);
 }
示例#4
0
 @Override
 public boolean accept(final ASTVisitor visitor) {
   return expr.accept(visitor) && visitor.declared(var);
 }