Package nz.org.riskscape.pipeline.ast
Class PipelineDeclaration.Found
java.lang.Object
nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found
- Enclosing class:
- PipelineDeclaration
Simple value holder for the results of finding a step via the PipelineDeclaration.find(BiPredicate) method.
Was originally a Pair, but the type signature was pretty hideous and this makes reading the use of a find
a bit easier to comprehend.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetChain()intgetStep()inthashCode()static PipelineDeclaration.Foundlast(PipelineDeclaration decl) static PipelineDeclaration.Foundlast(PipelineDeclaration decl, StepChain chain) replace(StepDeclaration replacement) Replace the foundStepDeclarationwith the given one, returning a newPipelineDeclarationandStepChainwith the change.toString()
-
Constructor Details
-
Found
-
-
Method Details
-
last
-
last
-
append
Append a
StepChainto the foundStepChain, returning a newPipelineDeclarationwith the change. -
getChainIndex
public int getChainIndex()- Returns:
- the list index of the found chain within the pipeline declaration
-
replace
Replace the found
StepDeclarationwith the given one, returning a newPipelineDeclarationandStepChainwith the change. -
getPipeline
-
getChain
-
getStep
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-