Package nz.org.riskscape.wizard.bld.loc
Class AtLastChange
java.lang.Object
nz.org.riskscape.wizard.bld.loc.AtLastChange
- All Implemented Interfaces:
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 Summary
Fields inherited from interface nz.org.riskscape.wizard.bld.loc.ChangeLocation
EMPTY, END, START
-
Method Summary
Modifier and TypeMethodDescriptionList<nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found>
find
(IncrementalBuildState buildState) protected nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found
findLastChange
(nz.org.riskscape.pipeline.ast.PipelineDeclaration oldAst, nz.org.riskscape.pipeline.ast.PipelineDeclaration latestAst) Optional<nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found>
findOne
(IncrementalBuildState buildState) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.wizard.bld.loc.ChangeLocation
isMultiple
-
Field Details
-
INSTANCE
-
-
Method Details
-
find
public List<nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found> find(IncrementalBuildState buildState) - Specified by:
find
in interfaceChangeLocation
- 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 interfaceChangeLocation
-
toString
- Specified by:
toString
in interfaceChangeLocation
- Overrides:
toString
in classObject
-
findLastChange
protected nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found findLastChange(nz.org.riskscape.pipeline.ast.PipelineDeclaration oldAst, nz.org.riskscape.pipeline.ast.PipelineDeclaration latestAst)
-