Return the length of the document content covered by an Annotation as a long. @param ann the annotation for which to determine the length @return the length of the document content covered by this annotation.
(SimpleAnnotation ann)
| 89 | * @return the length of the document content covered by this annotation. |
| 90 | */ |
| 91 | public static long lengthLong(SimpleAnnotation ann) { |
| 92 | return ann.getEndNode().getOffset() - |
| 93 | ann.getStartNode().getOffset(); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Return the length of the document as an |
no test coverage detected