public class WithinPosition extends RelativePosition
RelativePosition| Constructor and Description |
|---|
WithinPosition(Position mark,
Position anchor,
int gap,
boolean absoluteGap,
boolean not)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
get the length of the position returned by
Position.getPosition(String, int) |
getPositionpublic WithinPosition(Position mark, Position anchor, int gap, boolean absoluteGap, boolean not)
mark - Position, the mark to look foranchor - Position, anchor to find the mark before or aftergap - int, number of seperable token-sequences between mark and anchorabsoluteGap - boolean, true if the gap should be absolute, false
if mark should be within the gap from the anchornot - boolean, true if the mark should only be returned if it is not
after anchorpublic int getLength()
Position.getPosition(String, int)