@agentix-e/spel-ts - v1.2.2
    Preparing search index...

    Interface PropertyAccessor

    Parallels Spring PropertyAccessor

    Property accessor interface for reading/writing target object properties. Multiple Accessors form a chain of responsibility, tried in registration order.

    interface PropertyAccessor {
        canRead(
            context: EvaluationContext,
            target: unknown,
            name: string,
        ): boolean;
        canWrite(
            context: EvaluationContext,
            target: unknown,
            name: string,
        ): boolean;
        getSpecificTargetClasses(): (new (...args: unknown[]) => unknown)[] | null;
        read(context: EvaluationContext, target: unknown, name: string): TypedValue;
        write(
            context: EvaluationContext,
            target: unknown,
            name: string,
            newValue: unknown,
        ): void;
    }

    Implemented by

    Index
    • Return target types this Accessor can handle. Return null for generic handling.

      Returns (new (...args: unknown[]) => unknown)[] | null