Class FingerprintingEditor

java.lang.Object
io.micronaut.gradle.docker.editor.FingerprintingEditor
All Implemented Interfaces:
Editor

public class FingerprintingEditor extends Object implements Editor
An implementation of editor which computes a fingerprint for Gradle input snapshotting.
  • Constructor Details

    • FingerprintingEditor

      @Inject public FingerprintingEditor(org.gradle.api.model.ObjectFactory objects, List<String> fingerprint)
  • Method Details

    • before

      public void before(String line, org.gradle.api.Action<? super Editor> action)
      Description copied from interface: Editor
      Restricts edition to lines before the given line.
      Specified by:
      before in interface Editor
      Parameters:
      line - the marker line
      action - the action to execute
    • after

      public void after(String line, org.gradle.api.Action<? super Editor> action)
      Description copied from interface: Editor
      Restricts edition to lines after the given line.
      Specified by:
      after in interface Editor
      Parameters:
      line - the marker line
      action - the action to execute
    • replace

      public void replace(String replacement)
      Description copied from interface: Editor
      Replaces lines matching the current lower and upper bounds with the provided replacement.
      Specified by:
      replace in interface Editor
      Parameters:
      replacement - the replacement
    • replace

      public void replace(String line, String replacement)
      Description copied from interface: Editor
      Replaces lines matching the current lower and upper bounds with the replacement, if they match the line pattern.
      Specified by:
      replace in interface Editor
      Parameters:
      line - the line pattern
      replacement - the replacement
    • insert

      public void insert(String... lines)
      Description copied from interface: Editor
      Inserts the provided lines after the current lower bound.
      Specified by:
      insert in interface Editor
      Parameters:
      lines - the lines to be inserted
    • getFingerprint

      public List<String> getFingerprint()