Class StartChainChange
java.lang.Object
nz.org.riskscape.wizard.bld.change.BasePipelineChange<nz.org.riskscape.pipeline.ast.StepChain>
nz.org.riskscape.wizard.bld.change.StartChainChange
- All Implemented Interfaces:
PipelineChange
Change for adding a new StepChain to the pipeline being built
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTODO maybe break this up in to something else?toString()protected nz.org.riskscape.pipeline.ast.PipelineDeclarationupdateAst(IncrementalBuildState state, nz.org.riskscape.pipeline.ast.PipelineDeclaration astSegment, nz.org.riskscape.pipeline.ast.StepChain validated) Build a new AST that is the result of this changeprotected nz.org.riskscape.pipeline.ast.StepChainvalidateParsedSegment(nz.org.riskscape.pipeline.ast.PipelineDeclaration declaration) Validate that the parsed pipeline segment is ok to use in this kind of change.Methods inherited from class nz.org.riskscape.wizard.bld.change.BasePipelineChange
getAnswer, make, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nz.org.riskscape.wizard.bld.PipelineChange
getQuestion, getQuestionSet, parse
-
Constructor Details
-
StartChainChange
-
-
Method Details
-
updateAst
protected nz.org.riskscape.pipeline.ast.PipelineDeclaration updateAst(IncrementalBuildState state, nz.org.riskscape.pipeline.ast.PipelineDeclaration astSegment, nz.org.riskscape.pipeline.ast.StepChain validated) Description copied from class:BasePipelineChangeBuild a new AST that is the result of this change
- Specified by:
updateAstin classBasePipelineChange<nz.org.riskscape.pipeline.ast.StepChain>- Parameters:
state- the previous build state that we are building uponastSegment- the segment that was parsed and validated. This is not the previous state's ast.validated- the chunk of the parsed segment that the validate routine method returned - this is often the node of interest that ultimately gets added to the previous state's ast- Returns:
- a pipeline ast to be used in the next
IncrementalBuildState
-
validateParsedSegment
protected nz.org.riskscape.pipeline.ast.StepChain validateParsedSegment(nz.org.riskscape.pipeline.ast.PipelineDeclaration declaration) Description copied from class:BasePipelineChangeValidate that the parsed pipeline segment is ok to use in this kind of change.
- Specified by:
validateParsedSegmentin classBasePipelineChange<nz.org.riskscape.pipeline.ast.StepChain>- Returns:
- the interesting bit of the pipeline, e.g. a single step, a step chain, whatever
-
toString
- Overrides:
toStringin classBasePipelineChange<nz.org.riskscape.pipeline.ast.StepChain>
-
getSource
Description copied from class:BasePipelineChangeTODO maybe break this up in to something else?
- Specified by:
getSourcein classBasePipelineChange<nz.org.riskscape.pipeline.ast.StepChain>- Returns:
- the source code that was assembled to be parsed in to a
PipelineDeclaration
-