org.kemet.lf.tools
Class ReflexionToolBox

java.lang.Object
  extended by org.kemet.lf.tools.ReflexionToolBox

public class ReflexionToolBox
extends java.lang.Object

Since:
0.3
Author:
fabricemaupin

ReflexionToolBox : Toolbox for reflexion.


Constructor Summary
ReflexionToolBox()
           
 
Method Summary
static java.util.ArrayList execGenericMethodWithArrayListReturn(java.lang.Class cl, java.lang.String name, java.util.Vector param)
           execute a method with arrayList type returned value.
static java.lang.Object execGenericMethodWithObjectReturn(java.lang.Class cl, java.lang.String name, java.util.Vector param)
           execute a method with object returned value.
static int execInitMethod(java.lang.String target)
           execute a init method.
static int execInitMethodForJMenu(java.lang.String target)
           execute a init method for JMenu method.
static java.util.List<java.lang.Object> execInitMethodWithReturn(java.lang.String target)
           execute a method with object list returned value.
static java.util.List<java.lang.Object> execInitMethodWithReturn(java.lang.String target, java.util.Vector<java.lang.Object[]> param)
           execute a method with object list returned value.
static void execMethod(java.lang.String className, java.lang.String methodName, java.util.Vector<java.lang.Object[]> param)
           execute a method
static void execMethodWithNoReturn(java.lang.Class cl, java.lang.String name, java.util.Vector<java.lang.Object[]> param)
           execute a method with no return.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflexionToolBox

public ReflexionToolBox()
Method Detail

execGenericMethodWithArrayListReturn

public static java.util.ArrayList execGenericMethodWithArrayListReturn(java.lang.Class cl,
                                                                       java.lang.String name,
                                                                       java.util.Vector param)
                                                                throws ExceptionManager

execute a method with arrayList type returned value.

Parameters:
cl - the class
name - name of the method
param - parameters method (type and value)
Returns:
arrayList type
Throws:
ExceptionManager
Since:
0.3

execGenericMethodWithObjectReturn

public static java.lang.Object execGenericMethodWithObjectReturn(java.lang.Class cl,
                                                                 java.lang.String name,
                                                                 java.util.Vector param)
                                                          throws ExceptionManager

execute a method with object returned value.

Parameters:
cl - the class
name - name of the method
param - parameters method (type and value)
Returns:
object
Throws:
ExceptionManager
Since:
0.3

execInitMethodForJMenu

public static int execInitMethodForJMenu(java.lang.String target)

execute a init method for JMenu method.

Parameters:
target - method to treat
Returns:
no error (0) , error (-1)
Since:
0.3

execInitMethod

public static int execInitMethod(java.lang.String target)

execute a init method.

Parameters:
target - method to treat
Returns:
no error (0) , error (-1)
Since:
0.3

execInitMethodWithReturn

public static java.util.List<java.lang.Object> execInitMethodWithReturn(java.lang.String target)
                                                                 throws ExceptionManager

execute a method with object list returned value.

Parameters:
target - method to treat
Returns:
object list
Throws:
ExceptionManager
Since:
0.3

execInitMethodWithReturn

public static java.util.List<java.lang.Object> execInitMethodWithReturn(java.lang.String target,
                                                                        java.util.Vector<java.lang.Object[]> param)
                                                                 throws ExceptionManager

execute a method with object list returned value.

Parameters:
target - method to treat
param - list of parameters
Returns:
object list
Throws:
ExceptionManager
Since:
0.4

execMethod

public static void execMethod(java.lang.String className,
                              java.lang.String methodName,
                              java.util.Vector<java.lang.Object[]> param)
                       throws ExceptionManager

execute a method

Parameters:
className - name of the class
methodName - Name name of the method
param - list of parameters
Throws:
ExceptionManager
Since:
0.4

execMethodWithNoReturn

public static void execMethodWithNoReturn(java.lang.Class cl,
                                          java.lang.String name,
                                          java.util.Vector<java.lang.Object[]> param)
                                   throws ExceptionManager

execute a method with no return.

Parameters:
cl - class
name - name of the method
param - list of parameters
Throws:
ExceptionManager
Since:
0.5


Copyright © 2008 F. MAUPIN. All Rights Reserved.