mandala.util
Class Misc

java.lang.Object
  extended bymandala.util.Misc

public abstract class Misc
extends Object

Miscellaneous class.

Version:
$Revision: 1.4 $
Author:
eipi

Constructor Summary
Misc()
           
 
Method Summary
static String componentsToString(Object[] args)
           
static List findAllInterfaces(Class type)
          Return the list of Class objects representing all interfaces a given class implements.
static List findAllSuperTypes(Class type)
          Return the list of Class objects representing all super type a given class implements.
static List findAllTypes(Class type)
          Return the list of Class objects representing every types a give class implements.
static Class findMethodClassArgs(Class subClass, Class classToTest, String methodName, Syslog syslog)
          Return the Class type a given method take as its single parameter.
static String identityToString(Object o)
           
static String primitiveComponentsToString(Object array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Misc

public Misc()
Method Detail

findAllTypes

public static List findAllTypes(Class type)

Return the list of Class objects representing every types a give class implements.

Parameters:
type - a Class value
Returns:
a List value

findAllSuperTypes

public static List findAllSuperTypes(Class type)

Return the list of Class objects representing all super type a given class implements.

Parameters:
type - a Class value
Returns:
a List value

findAllInterfaces

public static List findAllInterfaces(Class type)

Return the list of Class objects representing all interfaces a given class implements.

Parameters:
type - a Class value
Returns:
a List value

findMethodClassArgs

public static Class findMethodClassArgs(Class subClass,
                                        Class classToTest,
                                        String methodName,
                                        Syslog syslog)

Return the Class type a given method take as its single parameter.

Parameters:
subClass - a Class value
classToTest - a Class value
methodName - a String value
syslog - a Syslog value
Returns:
a Class value

identityToString

public static String identityToString(Object o)

componentsToString

public static String componentsToString(Object[] args)

primitiveComponentsToString

public static String primitiveComponentsToString(Object array)


Mandala help mailing list