Class AtLastChange

java.lang.Object
nz.org.riskscape.wizard.bld.loc.AtLastChange
All Implemented Interfaces:
ChangeLocation

public class AtLastChange extends Object implements ChangeLocation

Identifies a location to apply a change by finding the last step that changed in the build state. Finds the change in reverse order, so that the last step and chain among all changes are returned.

  • Field Details

  • Method Details

    • find

      public List<nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found> find(IncrementalBuildState buildState)
      Specified by:
      find in interface ChangeLocation
      Returns:
      a list of locations where the change should be made to the given state.
    • findOne

      public Optional<nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found> findOne(IncrementalBuildState buildState)
      Specified by:
      findOne in interface ChangeLocation
    • toString

      public String toString()
      Specified by:
      toString in interface ChangeLocation
      Overrides:
      toString in class Object
    • findLastChange

      protected nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found findLastChange(nz.org.riskscape.pipeline.ast.PipelineDeclaration oldAst, nz.org.riskscape.pipeline.ast.PipelineDeclaration latestAst)