org.as2lib.core.BasicClass
+--org.as2lib.test.speed.AbstractTestResult
+--org.as2lib.test.speed.MethodInvocationTestResult
MethodInvocation reflects a profiled method invocation.
public function MethodInvocation(method:MethodInfo)
Constructs a new MethodInvocation instance.
method | the invoked method |
| IllegalArgumentException | if method is null or
undefined
|
static public UNKNOWN:Stringstatic public VOID:String Void in the type signature. public function getMethod(Void):MethodInfoReturns the invoked method.
the invoked method
public function getName(Void):StringReturns the name of this method invocation. This is the method's name plus the signature of this method invocation.
the name of this method invocation
public function getMethodName(Void):StringReturns the full name of the invoked method.
the full name of the invoked method
public function getSignature(Void):StringReturns the signature of this method invocation.
If any information needed to generate the signature is not defined, UNKNOWN is used as placeholder.
this method invocation's signature
public function getTime(Void):NumberReturns the time in milliseconds needed for this method invocation.
the time in milliseconds needed for this method invocation
public function setTime(time:Number):VoidSets the time in milliseconds needed for this method invocation.
time | the time in milliseconds needed for this method invocation |
public function getArguments(Void):ArrayReturns the arguments used for this method invocation.
the arguments used for this method invocation
public function setArguments(args:Array):VoidSets the arguments used for this method invocation.
args | the arguments used for this method invocation |
public function getReturnValue(Void)Returns this method invocation's return value.
this method invocation's return value
public function setReturnValue(returnValue):VoidSets the return value of this method invocation.
returnValue | the return value of this method invocation |
public function getException(Void)Returns the exception thrown during this method invocation.
the exception thrown during this method invocation
public function setException(exception):VoidSets the exception thrown during this method invocation.
exception | the exception thrown during this method invocation |
public function wasSuccessful(Void):BooleanReturns whether this method invocation was successful. Successful means that it returned a proper return value and did not throw an exception.
true if this method invocation was successful else false
public function getCaller(Void):MethodInvocationReturns the method invocation that called the method that resulted in this method invocation.
the method invocation that called the method that resulted in this method.
public function setCaller(caller:MethodInvocation):VoidSets the method invocation that called the method that resulted in this method invocation.
caller | the method invocation that called the method that resulted in this method invocation. |
public function getPreviousMethodInvocation(Void):MethodInvocationReturns the previous method invocation.
the previous method invocation
public function setPreviousMethodInvocation(previousMethodInvocation:MethodInvocation):VoidSets the previous method invocation.
previousMethodInvocation | the previous method invocation |
public function isPreviousMethodInvocation(methodInvocation:MethodInvocation):Boolean
Checks whether this method invocation was invoked before the passed-in
methodInvocation.
methodInvocation | the method invocation to make the check upon |
true if this method invocation was invoked previously to the
passed-in methodInvocation else false
public function toString():StringReturns the string representation of this method invocation.
the string representation of this method invocation
toString() in org.as2lib.core.BasicInterface