public class AfterPosition extends RelativePosition
The conditions which can be supplied are:
| Constructor and Description |
|---|
AfterPosition(Position token,
Position anchor)
Constructor
|
AfterPosition(Position mark,
Position anchor,
int gap,
boolean absoluteGap,
boolean not)
Constructor
|
AfterPosition(java.lang.String mark,
Position anchor)
Constructor
|
AfterPosition(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 AfterPosition(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 afterAfterPosition(Position, Position, int, boolean, boolean)public AfterPosition(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 afterAfterPosition(Position, Position, int, boolean, boolean)public AfterPosition(Position token, 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
token - Position, the mark to look foranchor - Position, anchor to find the mark afterAfterPosition(Position, Position, int, boolean, boolean)public AfterPosition(Position mark, Position anchor, int gap, boolean absoluteGap, boolean not)
mark - Position, the mark to look foranchor - Position, anchor to find the mark 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)