Package li.selman.jpbe.dsl.position
Class PositionsBuilder
java.lang.Object
li.selman.jpbe.dsl.position.PositionsBuilder
- All Implemented Interfaces:
PositionBuilder
Wraps and applies multiple PositionBuilders.
-
Method Summary
Modifier and TypeMethodDescriptioncomputePositions
(String input, int k) Generates all possible position which match a given index on a given string.static PositionsBuilder
of
(List<PositionBuilder> positionBuilders) static PositionsBuilder
of
(PositionBuilder... positionBuilders)
-
Method Details
-
of
-
of
-
computePositions
Description copied from interface:PositionBuilder
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
.- Specified by:
computePositions
in interfacePositionBuilder
- Parameters:
input
- Input stringk
- index of position to generate to- Returns:
- set of positions
-