@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; }
@Override public boolean accept(final ASTVisitor visitor) { return super.accept(visitor) && query.accept(visitor) && (occ == null || visitAll(visitor, occ)); }