org.objectweb.jac.util
Class Classes

java.lang.Object
  extended byorg.objectweb.jac.util.Classes

public class Classes
extends Object


Constructor Summary
Classes()
           
 
Method Summary
static Object[] convertPrimitiveArray(Object primitiveArray)
          Convert an array of a primitive type to an array of Object.
static Class getPrimitiveTypeWrapper(Class type)
          Return the java.lang type wrapped for a primitive type.
static String getPrimitiveTypeWrapper(String type)
          Return the java.lang type wrapped for a primitive type.
static boolean isPrimitiveType(String type)
          Return the java.lang type wrapped for a primitive type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classes

public Classes()
Method Detail

getPrimitiveTypeWrapper

public static Class getPrimitiveTypeWrapper(Class type)
Return the java.lang type wrapped for a primitive type. For instance, the wrapper type for int is java.lang.Integer.

Parameters:
type - the type you want the wrapper type for.
Returns:
the wrapper type for type if type is a primitive type, otherwise type itself.

getPrimitiveTypeWrapper

public static String getPrimitiveTypeWrapper(String type)
Return the java.lang type wrapped for a primitive type. For instance, the wrapper type for int is java.lang.Integer.

Parameters:
type - the type you want the wrapper type for.
Returns:
the wrapper type for type if type is a primitive type, otherwise type itself.

isPrimitiveType

public static boolean isPrimitiveType(String type)
Return the java.lang type wrapped for a primitive type. For instance, the wrapper type for int is java.lang.Integer.

Parameters:
type - the type you want the wrapper type for.
Returns:
the wrapper type for type if type is a primitive type, otherwise type itself.

convertPrimitiveArray

public static Object[] convertPrimitiveArray(Object primitiveArray)
Convert an array of a primitive type to an array of Object.