Class EndOfBranchWith

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

public class EndOfBranchWith extends Object implements ChangeLocation

Locates the last step in a chain that begins with a particular step.

  • Constructor Details

  • Method Details

    • stepNamed

      public static EndOfBranchWith stepNamed(String stepName)

      Convenience constructor that looks for a branch with a particular step name

    • toString

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

      public boolean isMultiple()
      Specified by:
      isMultiple in interface ChangeLocation
      Returns:
      true if this change location expects to return more than one PipelineDeclaration.Found location.
    • 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.