code: Set<ExportsFlag> readExportsFlags(int flags) {
          Set<ExportsFlag> set = EnumSet.noneOf(ExportsFlag.class);
          for (ExportsFlag f: ExportsFlag.values()) {
              if ((flags & f.value) != 0)
                  set.add(f);
          }
          return set;
      }
docs: Read exports_flags.