public abstract class LineSearchingResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LineSearchingResult.LineSearchHit |
Modifier and Type | Field and Description |
---|---|
static LineSearchingResult |
LINE_SEARCH_MISS |
Constructor and Description |
---|
LineSearchingResult() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
after(int position)
true if this occurrence is after the given position |
abstract boolean |
before(int position)
true if this occurrence is before the given position |
abstract String |
getContent() |
abstract int |
getEndIndex() |
abstract int |
getStartIndex() |
boolean |
notFound() |
abstract boolean |
startsBefore(int position) |
abstract boolean |
wasFound() |
public static final LineSearchingResult LINE_SEARCH_MISS
public abstract int getStartIndex()
UnsupportedOperationException
if not found.public abstract int getEndIndex()
UnsupportedOperationException
if not found.public abstract String getContent()
UnsupportedOperationException
if not found.public abstract boolean wasFound()
true
for a match, false
for a search miss.public boolean notFound()
true
for a search miss, false
for a match.public abstract boolean after(int position)
true
if this occurrence is after the given positionpublic abstract boolean before(int position)
true
if this occurrence is before the given positionpublic abstract boolean startsBefore(int position)
Copyright © 2018-2019 Henix. All Rights Reserved.