Package li.selman.jpbe.dsl.position
Interface PositionBuilder
- All Known Implementing Classes:
ConstantPositionBuilder
,DynamicPositionBuilder
,PositionsBuilder
public interface PositionBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncomputePositions
(String input, int k) Generates all possible position which match a given index on a given string.
-
Method Details
-
computePositions
Generates all possible position which match a given index on a given string. Note that if the passed parameters are valid, then all computed positions must evaluate tok
oninput
.- Parameters:
input
- Input stringk
- index of position to generate to- Returns:
- set of positions
- Throws:
IllegalArgumentException
- ifk
< 0IllegalArgumentException
- ifk
>input.length()
-