Class BlockChunkFinder
java.lang.Object
org.jenkinsci.plugins.workflow.graphanalysis.BlockChunkFinder
- All Implemented Interfaces:
- ChunkFinder
Matches start and end of a block.  Any block!
- Author:
- Sam Van Oort
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisChunkEnd(FlowNode current, FlowNode previous) Test if the current node is the end of a chunk (inclusive)booleanisChunkStart(FlowNode current, FlowNode previous) Test if the current node is the start of a new chunk (inclusive)booleanNOTE: you will need to handle cases where you have aBlockStartNodewhere theBlockEndNodehas not been generated yet! This means you need to keep nodes around even after hitting the EndNode
- 
Constructor Details- 
BlockChunkFinderpublic BlockChunkFinder()
 
- 
- 
Method Details- 
isStartInsideChunkpublic boolean isStartInsideChunk()NOTE: you will need to handle cases where you have aBlockStartNodewhere theBlockEndNodehas not been generated yet! This means you need to keep nodes around even after hitting the EndNode- Specified by:
- isStartInsideChunkin interface- ChunkFinder
 
- 
isChunkStartDescription copied from interface:ChunkFinderTest if the current node is the start of a new chunk (inclusive)- Specified by:
- isChunkStartin interface- ChunkFinder
- Parameters:
- current- Node to test for being a start, it will begin the chunk and be included
- previous- Previous node, to use in testing chunk
- Returns:
- True if current node is the beginning of chunk
 
- 
isChunkEndDescription copied from interface:ChunkFinderTest if the current node is the end of a chunk (inclusive)- Specified by:
- isChunkEndin interface- ChunkFinder
- Parameters:
- current- Node to test for being end- For a block, the - BlockEndNode- For a legacy stage or marker, this will be first node of new stage (previous is the marker) 
- previous- Previous node, to use in testing chunk
- Returns:
- True if current is the end of a chunk (inclusive)
 
 
-