public interface Annotation
Modifier and Type | Field and Description |
---|---|
static int |
AFTER_LAST |
static int |
BEFORE_FIRST |
Modifier and Type | Method and Description |
---|---|
int |
getAnnotationCount()
Returns the total number of annotations this object represents
|
int |
getIndex()
Returns the current value of the internal index pointer
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
void |
moveToAnnotation(int index)
Move the internal index pointer so that subsequent calls
to getter methods refer to the given index
|
boolean |
nextAnnotation()
Moves the internal hit pointer one step forward and returns
true if it now points to a valid hit
|
void |
reset()
Returns the internal annotation pointer to a position
right before the first annotation
|
static final int BEFORE_FIRST
static final int AFTER_LAST
int getAnnotationCount()
void reset()
boolean isBeforeFirst()
boolean isAfterLast()
boolean nextAnnotation()
java.lang.IllegalStateException
- if the internal hit pointer is
currently after the last hit indexint getIndex()
void moveToAnnotation(int index)
index
-