public static class LineSearchingResult.LineSearchHit extends LineSearchingResult
LineSearchingResult.LineSearchHit
LINE_SEARCH_MISS
Constructor and Description |
---|
LineSearchHit(int startIndex,
int endIndex,
String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
after(int position)
true if this occurrence is after the given position |
boolean |
before(int position)
true if this occurrence is before the given position |
String |
getContent()
Exact value of the occurrence (as it may have been defined as a regex or other variable search target definition)
|
int |
getEndIndex()
Where the occurrence ended in the original string
|
int |
getStartIndex()
Where the occurrence begins in the original string.
|
boolean |
startsBefore(int position) |
boolean |
wasFound() |
notFound
public LineSearchHit(int startIndex, int endIndex, String content)
public int getStartIndex()
getStartIndex
in class LineSearchingResult
UnsupportedOperationException
if not found.public int getEndIndex()
getEndIndex
in class LineSearchingResult
UnsupportedOperationException
if not found.public String getContent()
getContent
in class LineSearchingResult
UnsupportedOperationException
if not found.public boolean wasFound()
wasFound
in class LineSearchingResult
true
for a match, false
for a search miss.public boolean after(int position)
LineSearchingResult
true
if this occurrence is after the given positionafter
in class LineSearchingResult
public boolean before(int position)
LineSearchingResult
true
if this occurrence is before the given positionbefore
in class LineSearchingResult
public boolean startsBefore(int position)
startsBefore
in class LineSearchingResult
Copyright © 2018-2019 Henix. All Rights Reserved.