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

com.devonfw.tools.ide.migrator.line.LineMigration Maven / Gradle / Ivy

Go to download

Code for configurator the creates or updates configuration of IDEs (Eclipse, etc.).

There is a newer version: 3.0.0-beta25
Show newest version
package com.devonfw.tools.ide.migrator.line;

import java.io.File;

/**
 * Interface to migrate a single line of text (code, etc.)
 */
public interface LineMigration {

  /**
   * @param file the {@link File} to start migrating.
   */
  void init(File file);

  /**
   * @param line the line of text to process.
   * @return the migrated line (may be the original or a modified one).
   */
  String migrateLine(String line);

  /**
   * Called at the beginning of each new file to clear potential state.
   */
  void clear();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy