| Constructor and Description |
|---|
RegExPosition(java.lang.String token)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
get the length of the position returned by
Position.getPosition(String, int) |
int |
getPosition(java.lang.String line,
int begin)
get a position in a line, not before begin or return -1
|
public RegExPosition(java.lang.String token)
token - String, the token that should be
foundjava.lang.IllegalArgumentException - if token is null or an empty Stringpublic final 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 frompublic final int getLength()
Position.getPosition(String, int)