gate.jape.functest
Class BaseJapeTests.BaseAnnotationCreator
java.lang.Object
gate.jape.functest.BaseJapeTests.BaseAnnotationCreator
- All Implemented Interfaces:
- BaseJapeTests.AnnotationCreator
- Enclosing class:
- BaseJapeTests
public abstract static class BaseJapeTests.BaseAnnotationCreator
- extends Object
- implements BaseJapeTests.AnnotationCreator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
as
protected AnnotationSet as
curOffset
protected int curOffset
dfltAnnotLen
protected int dfltAnnotLen
emptyFeat
protected static FeatureMap emptyFeat
BaseJapeTests.BaseAnnotationCreator
public BaseJapeTests.BaseAnnotationCreator()
annotate
public final void annotate(Document doc)
throws InvalidOffsetException
- Specified by:
annotate in interface BaseJapeTests.AnnotationCreator
- Throws:
InvalidOffsetException
add
protected BaseJapeTests.AnnotationCreator add(int start,
int end,
String type)
throws InvalidOffsetException
- Add an annotation of the given type over the given range. Does not
increment curOffset.
- Throws:
InvalidOffsetException
add
protected BaseJapeTests.AnnotationCreator add(int start,
int end,
String type,
FeatureMap fm)
throws InvalidOffsetException
- Add an annotation of the given type over the given range. Does not
increment curOffset.
- Throws:
InvalidOffsetException
addInc
protected BaseJapeTests.AnnotationCreator addInc(String type)
throws InvalidOffsetException
- Add an annotation of the given type at the current offset and
increment the placement counter.
- Throws:
InvalidOffsetException
add
protected BaseJapeTests.AnnotationCreator add(String type)
throws InvalidOffsetException
- Add annot at the current offset
- Throws:
InvalidOffsetException