org.apache.uima.analysis_component

## Interface CasProcessor<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 CasProcessor<E extends Throwable>

  A functional interface for a CAS processor.

- - ### Method Summary

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

- - ### Method Detail

    - #### process

          void process(CAS aCas)
                throws E extends Throwable

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

    - #### andThen

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

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

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