All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.CodemodPackageUpdateResult Maven / Gradle / Ivy

There is a newer version: 0.98.6
Show newest version
package io.codemodder;

import io.codemodder.codetf.CodeTFChangesetEntry;
import io.codemodder.codetf.CodeTFPackageAction;
import java.nio.file.Path;
import java.util.List;
import java.util.Set;

/** A model of a codemod's updating of packages. */
public interface CodemodPackageUpdateResult {

  /** A structured description of what we were able to do. */
  List packageActions();

  /** The changes that were made to the manifest file. */
  List manifestChanges();

  /** The set of files that we attempted to update, but failed. */
  Set filesFailedToChange();

  static CodemodPackageUpdateResult from(
      final List packageActions,
      final List manifestChanges,
      final Set filesFailedToChange) {
    return new CodemodPackageUpdateResult() {
      @Override
      public List packageActions() {
        return packageActions;
      }

      @Override
      public List manifestChanges() {
        return manifestChanges;
      }

      @Override
      public Set filesFailedToChange() {
        return filesFailedToChange;
      }
    };
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy