code: private boolean matches(String classname, AccessFlags flags) {
          if (options.apiOnly && !flags.is(AccessFlags.ACC_PUBLIC)) {
              return false;
          } else if (options.includePattern != null) {
              return options.includePattern.matcher(classname.replace('/', '.')).matches();
          } else {
              return true;
          }
      }
docs: Tests if the given class matches the pattern given in the -include option
  or if it's a public class if -apionly option is specified