Given an annotation, this method returns the string of that annotation
(Annotation ann)
| 1169 | * Given an annotation, this method returns the string of that annotation |
| 1170 | */ |
| 1171 | public String getString(Annotation ann) { |
| 1172 | return document.getContent().toString().substring(ann. |
| 1173 | getStartNode().getOffset().intValue(), |
| 1174 | ann.getEndNode().getOffset().intValue() |
| 1175 | ).replaceAll("\\r\\n|\\r|\\n", " "); |
| 1176 | } |
| 1177 | |
| 1178 | /** |
| 1179 | * Removes the reference of this annotation from the current chain. |
no test coverage detected