...
Code Block |
---|
|
jcas.select(Token.class)
jcas.select(Token.type)
jcas.select("my.package.Token")
for (Token.class : jcas.select(Token.class)) {
...
}
jcas.select(Token.class).forEach( t -> System.out.println(t) ); |
select(FSArray, Class<T>)
Code Block |
---|
|
myArray.select(Token.class)
|
select(FSList, Class<T>)
Code Block |
---|
|
myList.select(Token.class) |
...
selectFollowing(JCas, Class<T>, AnnotationFS, int)
Code Block |
---|
|
jcasjcas.select(Token.class).startAt(contextAnnotation).limit(10) // it is IMHO not entirely clear here that contextAnnotation is not included in the result...
jcas.select(Token.class).seek(contextAnnotation).skip(1).limit(10) // somehow too complex...
jcas.select(Token.class).following(contextAnnotation).limit(10) |
selectPreceding
Returns the n annotations preceding the given annotation.
...
Code Block |
---|
|
jcas.select(DocumentMetaData.class).single()
jcas.select(DocumentMetaData.class).single().getDocumentUri() |
selectSingleAt
Get a single annotations of the given type at the specified offsets.
...