MethodCall stores all information available about a method call.
new MethodCall()public function getMethodName(Void):StringReturns the name of the called method.
the name of the called method
public function getArguments(Void):ArrayReturns the arguments used for the method call.
the arguments used for the method call
public function getArgumentsMatcher(Void):ArgumentsMatcherReturns the currently used arguments matcher.
That is either the arguments matcher set via the setArgumentsMatcher method or an instance of the default DefaultArgumentsMatcher class.
the currently used arguments matcher
public function setArgumentsMatcher(argumentsMatcher:ArgumentsMatcher):VoidSets the new arguments matcher.
If argumentsMatcher is null the getArgumentsMatcher
method returns the default arguments matcher.
argumentsMatcher | the new arguments matcher |
public function matches(methodCall:MethodCall):Boolean
Checks whether this method call matches the passed-in methodCall.
false will be returned if:
methodCall is null.methodCall | the method call to compare with this instance |
public function toString():StringReturns the string representation of this method call.
The returned string is constructed as follows:
theMethodName(theFirstArgument, ..)
the string representation of this method call
toString() in org.as2lib.core.BasicInterface