final class SegmentPatternBuilder extends Object
Constructor and Description |
---|
SegmentPatternBuilder(DifferenceShadowsV _view,
DifferenceParse _p)
Creates a SegmentPatternBuilder.
|
Modifier and Type | Method and Description |
---|---|
(package private) String |
nextPattern(char prefix)
Returns the search pattern for the next segment of the diff commencing at
p.diffText.charAt( p.d ) . |
SegmentPatternBuilder(DifferenceShadowsV _view, DifferenceParse _p)
String nextPattern(char prefix) throws DifferenceShadowsV.Warning
p.diffText.charAt( p.d )
. The pattern includes only those contiguous
lines that start with the specified prefix. Pointer p.d is left at the start of
the next segment, or at p.diffText.length if there is none.prefix
- the line prefix of the diff segment. This is either '-' or '+'
for a hunk segment, or space ' ' for a context segment.Warning
- if a failure is detected.DifferenceShadowsV.Warning