org.as2lib.core.BasicClass +--org.as2lib.test.speed.AbstractTestResult +--org.as2lib.test.speed.MethodInvocation
TestResult
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:String
static public VOID:String
Void
in the type signature. public function getMethod(Void):MethodInfo
Returns the invoked method.
the invoked method
public function getName(Void):String
Returns 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):String
Returns the full name of the invoked method.
the full name of the invoked method
public function getSignature(Void):String
Returns 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):Number
Returns the time in milliseconds needed for this method invocation.
the time in milliseconds needed for this method invocation
public function setTime(time:Number):Void
Sets the time in milliseconds needed for this method invocation.
time | the time in milliseconds needed for this method invocation |
public function getArguments(Void):Array
Returns the arguments used for this method invocation.
the arguments used for this method invocation
public function setArguments(args:Array):Void
Sets 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):Void
Sets 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):Void
Sets the exception thrown during this method invocation.
exception | the exception thrown during this method invocation |
public function wasSuccessful(Void):Boolean
Returns 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):MethodInvocation
Returns 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):Void
Sets 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):MethodInvocation
Returns the previous method invocation.
the previous method invocation
public function setPreviousMethodInvocation(previousMethodInvocation:MethodInvocation):Void
Sets 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():String
Returns the string representation of this method invocation.
the string representation of this method invocation
toString() in org.as2lib.core.BasicInterface