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

Constructors

Properties

Methods

Constructors

  • 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

@class: string

Server-side ValueExtractor implementation type identifier.

name: string

A method or property name.

params?: any[]

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

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