public class BeforePosition extends RelativePosition
The conditions which can be supplied are:
| Constructor and Description |
|---|
BeforePosition(Position mark,
Position anchor)
Constructor
|
BeforePosition(Position mark,
Position anchor,
int gap,
boolean absoluteGap,
boolean not)
Constructor
|
BeforePosition(java.lang.String mark,
Position anchor)
Constructor
|
BeforePosition(java.lang.String mark,
java.lang.String anchor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
get the length of the position returned by
Position.getPosition(String, int) |
getPositionpublic BeforePosition(java.lang.String mark,
java.lang.String anchor)
Kept around because it is used in existing code
With this constructor the gap is set to 0 (not relevant) and not-indicator is false
mark - String, the mark to look foranchor - String, anchor to find the mark beforeBeforePosition(Position, Position, int, boolean, boolean)public BeforePosition(java.lang.String mark,
Position anchor)
Kept around because it is used in existing code
With this constructor the gap is set to 0 (not relevant) and not-indicator is false
mark - String, the mark to look foranchor - Position, anchor to find the mark beforeBeforePosition(Position, Position, int, boolean, boolean)public BeforePosition(Position mark, Position anchor)
Kept around because it is used in existing code
With this constructor the gap is set to 0 (not relevant) and not-indicator is false
mark - Position, the mark to look foranchor - Position, anchor to find the mark beforeBeforePosition(Position, Position, int, boolean, boolean)public BeforePosition(Position mark, Position anchor, int gap, boolean absoluteGap, boolean not)
mark - Position, the mark to look foranchor - Position, anchor to find the mark beforegap - 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
before anchorpublic int getLength()
Position.getPosition(String, int)