public abstract class RelativePosition extends java.lang.Object implements Position
The conditions which can be supplied are:
| Constructor and Description |
|---|
RelativePosition(Position pos,
Position anchor,
int direction,
int gap,
boolean absoluteGap,
boolean not)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPosition(java.lang.String line,
int begin)
get a position in a line, not before begin or return -1
|
public RelativePosition(Position pos, Position anchor, int direction, int gap, boolean absoluteGap, boolean not)
pos - 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
after anchorpublic int getPosition(java.lang.String line,
int begin)
getPosition in interface Positionline - String, the line to find the position inbegin - int, the location to start from