Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniversalExtractor

Universal ValueExtractor implementation.

Either a property or method based extractor based on parameters passed to constructor. Generally, the name value passed to the `UniversalExtractor` constructor represents a property unless the *name* value ends in `()`, then this instance is a reflection based method extractor. Special cases are described in the constructor documentation.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a UniversalExtractor based on a name and optional parameters.

    If name does not end in (), this extractor is a property extractor. If name is prefixed with one of set or get and ends in (), this extractor is a property extractor. If the name just ends in (), this extractor is considered a method extractor.

    Parameters

    • name: string

      a method or property name

    • Optional params: any[]

      the array of arguments to be used in the method invocation; may be null

    Returns UniversalExtractor

Properties

Protected @class

@class: string

Server-side ValueExtractor implementation type identifier.

Protected name

name: string

A method or property name.

Protected Optional params

params: any[]

The parameter array. Must be null or zero length for a property based extractor.

Methods

andThen

  • 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.

    Parameters

    • after: ValueExtractor

      the extractor to apply after this extractor is applied

    Returns ValueExtractor

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

compose

  • 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.

    Parameters

    • before: ValueExtractor

      the extractor to apply before this extractor is applied

    Returns ValueExtractor

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