public abstract class Annotator_ImplBase extends AnalysisComponent_ImplBase
AnalysisComponent that may modify its
 input CAS, but never creates any new CASes as output. Typically, annotators should not extend
 this class directly, but instead extend CasAnnotator_ImplBase or
 JCasAnnotator_ImplBase depending on which CAS interface they wish to use.| Constructor and Description | 
|---|
| Annotator_ImplBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCasInstancesRequired()Returns 0, since annotators are not allowed to create new CAS instances. | 
| boolean | hasNext()Returns false, since annotators are not allowed to create new CAS instances. | 
| AbstractCas | next()Throws a UIMA_IllegalStateException, since annotators are not allowed to create new CAS
 instances. | 
batchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, initialize, reconfigure, setResultSpecificationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredCasInterface, processpublic final int getCasInstancesRequired()
public final boolean hasNext()
                      throws AnalysisEngineProcessException
AnalysisEngineProcessException - if a problem occurs during processingpublic final AbstractCas next() throws AnalysisEngineProcessException
AnalysisEngineProcessException - if a problem occurs during processingCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.