|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Span
A sub-section of a document, either linear or two-dimensional. Spans are immutable.
Method Summary | |
---|---|
java.lang.Object |
getDocument()
|
int |
getEndIdx()
Returns an integer index identifying the end of this span. |
int |
getStartIdx()
Returns an integer index identifying the start of this span. |
java.lang.String |
getText()
Returns a textual representatio of the span, suitable for XML output, e.g. |
Span |
intersection(Span r)
Returns a new span that is the intersection of this span and another. |
boolean |
intersects(Span r)
|
boolean |
isSubspan(Span r)
|
Method Detail |
---|
java.lang.String getText()
Span intersection(Span r)
java.lang.Object getDocument()
boolean intersects(Span r)
boolean isSubspan(Span r)
int getStartIdx()
int getEndIdx()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |