private static int getXIndex ( PatternFinderUser def , int x , Segment < PrimitiveParameter > lastMatch ) { int skipStart = def . getSkipStart ( ) ; if ( lastMatch != null && skipStart > 0 ) { return Math . max ( x , lastMatch . getFirstIndex ( ) + skipStart ) ; } else if ( lastMatch != null && def . getSkip ( ) > 0 ) { return Math . max ( x , lastMatch . getLastIndex ( ) + def . getSkip ( ) ) ; } else { return x ; } }
Return the first value of the next segment to be searched .