Package li.selman.jpbe.dsl.position
Class ConstantPositionBuilder
java.lang.Object
li.selman.jpbe.dsl.position.ConstantPositionBuilder
- All Implemented Interfaces:
PositionBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputePositions
(String input, int k) Generates all possible position which match a given index on a given string.
-
Constructor Details
-
ConstantPositionBuilder
public ConstantPositionBuilder()
-
-
Method Details
-
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
-