Package com.jk.core.reflection.common
Class MethodCallInfo
java.lang.Object
com.jk.core.reflection.common.MethodCallInfo
- All Implemented Interfaces:
 Serializable
This class represents information about a method call, including class name,
 method name, parameters, result, and any associated exceptions.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newMethodCallInfo.MethodCallInfo(String className, String methodName, Object... paramters) This method constructs a newMethodCallInfowith the specified class name, method name and parameters. - 
Method Summary
Modifier and TypeMethodDescriptionThis method gets the method class name.This method get the method exception.This method gets the method name.Object[]This method gets the parameters being passed to the method.Class[]This method gets the parameter types as an array of Class objects.This method gets the result of the method call.booleanisFailed()This method checks whether the method call failed or not.voidset(MethodCallInfo another) This method sets the values of thisMethodCallInfofrom another instance.voidsetClassName(String className) This method sets the class name to the specified value.voidThis method sets the method call exception to the specified exception.voidsetFailed(boolean failed) This method sets the failure status of the method call.voidsetMethodName(String methodName) This method sets the method name.voidsetParamters(Object... param) This method sets the parameters being passed to the method call.voidThis method sets the result of the method call.toString()Returns a string representation of the object. 
- 
Constructor Details
- 
MethodCallInfo
public MethodCallInfo()This method constructs a newMethodCallInfo. - 
MethodCallInfo
This method constructs a newMethodCallInfowith the specified class name, method name and parameters.- Parameters:
 className- Specifies the method class name.methodName- Specifies the method name.paramters- Specifies the method parameters.
 
 - 
 - 
Method Details
- 
getClassName
This method gets the method class name.- Returns:
 - the method class name.
 
 - 
getException
This method get the method exception.- Returns:
 - the method exception.
 
 - 
getMethodName
This method gets the method name.- Returns:
 - the method name.
 
 - 
getParamters
This method gets the parameters being passed to the method.- Returns:
 - the parameters array.
 
 - 
getParamtersTypes
This method gets the parameter types as an array of Class objects.- Returns:
 - an array of parameter types.
 
 - 
getResult
This method gets the result of the method call.- Returns:
 - the result of the method call.
 
 - 
isFailed
public boolean isFailed()This method checks whether the method call failed or not.- Returns:
 - true, if it did fail, false otherwise.
 
 - 
set
This method sets the values of thisMethodCallInfofrom another instance.- Parameters:
 another- Specifies the other instance to copy values from.
 - 
setClassName
This method sets the class name to the specified value.- Parameters:
 className- Specifies the new class name.
 - 
setException
This method sets the method call exception to the specified exception.- Parameters:
 e- Specifies the new exception.
 - 
setFailed
public void setFailed(boolean failed) This method sets the failure status of the method call.- Parameters:
 failed- Indicates whether the method failed or not.
 - 
setMethodName
This method sets the method name.- Parameters:
 methodName- Specifies the new method name.
 - 
setParamters
This method sets the parameters being passed to the method call.- Parameters:
 param- Speciifes the new parameters.
 - 
setResult
This method sets the result of the method call.- Parameters:
 result- Specifies the new result of the method call.
 - 
toString
Returns a string representation of the object. 
 -