コード例 #1
0
ファイル: NameUpdates.java プロジェクト: james-jw/basex
 /**
  * Applies all updates.
  *
  * @param before run updates specified before or after node updates
  * @throws QueryException query exception
  */
 void apply(final boolean before) throws QueryException {
   final int pos = UpdateType._NODE_UPDATES_.ordinal();
   for (final NameUpdate up : nameUpdates) {
     final int ord = up.type.ordinal();
     if (before ? ord < pos : ord > pos) up.apply();
   }
 }