UNPKG

@rxx/core

Version:

React MVI micro framework.

32 lines (31 loc) 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MethodInvocation = (function () { function MethodInvocation(method, context, args, contextName, propertyKey) { this.method = method; this.context = context; this.args = args; this.contextName = contextName; this.propertyKey = propertyKey; } MethodInvocation.prototype.proceed = function () { return this.method.apply(this.context, this.args); }; MethodInvocation.prototype.getArguments = function () { return this.args; }; MethodInvocation.prototype.getContext = function () { return this.context; }; MethodInvocation.prototype.getInstanceName = function () { return this.contextName; }; MethodInvocation.prototype.getPropertyName = function () { return this.propertyKey; }; MethodInvocation.prototype.getFullQualifiedName = function () { return this.getInstanceName() + "." + this.getPropertyName(); }; return MethodInvocation; }()); exports.MethodInvocation = MethodInvocation;