Helper class to perform method introspection and dynamic invocation.
This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.
Because all languages have different casing and case sensitivity rules, this MethodReflector treats all method names as case insensitive.
let myObj = new MyObject(); let methods = MethodReflector.getMethodNames(); MethodReflector.hasMethod(myObj, "myMethod"); MethodReflector.invokeMethod(myObj, "myMethod", 123);
Gets names of all methods implemented in specified object.
an objec to introspect.
a list with method names.
Checks if object has a method with specified name..
an object to introspect.
a name of the method to check.
true if the object has the method and false if it doesn't.
Invokes an object method by its name with specified parameters.
an object to invoke.
a name of the method to invoke.
a list of method arguments.
the result of the method invocation or null if method returns void.
Generated using TypeDoc