org.apache.uima.analysis_component

## Interface JCasProcessor<E extends Throwable>

- Type Parameters:
    `E` - Thrown exception.
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface JCasProcessor<E extends Throwable>

  A functional interface for a JCas processor.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default JCasProcessor<E>` | `andThen(JCasProcessor<E> after)` Returns a composed `JCasProcessor` like `andThen(JCasProcessor)`.
    `void` | `process(JCas aJCas)` Accepts the processor.

- - ### Method Detail

    - #### process

          void process(JCas aJCas)
                throws E extends Throwable

      Accepts the processor.
      Parameters:
        `aJCas` - the JCas to process.
      Throws:
        `E` - Thrown when the processor fails.
        `E extends Throwable`

    - #### andThen

          default JCasProcessor<E> andThen(JCasProcessor<E> after)

      Returns a composed `JCasProcessor` like `andThen(JCasProcessor)`.
      Parameters:
        `after` - the operation to perform after this operation
      Returns:
        a composed `JCasProcessor` like `andThen(JCasProcessor)`.
      Throws:
        `NullPointerException` - when `after` is null

Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.