Composite ValueExtractor implementation based on an array of extractors. The extractors in the array are applied sequentially left-to-right, so a result of a previous extractor serves as a target object for a next one.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

@class: string

Server-side ValueExtractor implementation type identifier.

extractors: ValueExtractor[]

Methods

  • Returns a composed extractor that first applies this extractor to its input, and then applies the after extractor to the result. If evaluation of either extractor throws an exception, it is relayed to the caller of the composed extractor.

    Returns

    a composed extractor that first applies this extractor and then applies the after extractor

    Parameters

    • after: ValueExtractor

      the extractor to apply after this extractor is applied

    Returns ValueExtractor

  • Returns a composed extractor that first applies the before extractor to its input, and then applies this extractor to the result. If evaluation of either extractor throws an exception, it is relayed to the caller of the composed extractor.

    Returns

    a composed extractor that first applies the before extractor and then applies this extractor

    Parameters

    • before: ValueExtractor

      the extractor to apply before this extractor is applied

    Returns ValueExtractor

  • Create a new ChainedExtractor based on the provided dot-delimited sequence of method names.

    Returns

    an array of ValueExtractors based on the input string

    Parameters

    • fields: string

      a dot-delimited sequence of method names

    Returns ValueExtractor[]