| |
|
| java.lang.Object com.tc.util.ClassUtils
ClassUtils | public class ClassUtils (Code) | | Class utility methods
|
Inner Class :public interface ClassSpec | |
arrayDimensions | public static int arrayDimensions(Class arrayClass)(Code) | | Get the dimension of an array
Parameters: arrayClass - The array class Dimension, >= 0 throws: NullPointerException - If arrayClass is null throws: IllegalArgumentException - If arrayClass is not an array class |
baseComponentType | public static Class baseComponentType(Class c)(Code) | | If c is an array, return the reifiable type of the array element
Parameters: c - Array class Type of an array element throws: NullPointerException - If arrayClass is null throws: IllegalArgumentException - If arrayClass is not an array class |
isEnum | public static boolean isEnum(Class c)(Code) | | Determine whether c is an enum (JDK 1.4 friendly)
Parameters: c - Class True if enum |
isPortableReflectionClass | public static boolean isPortableReflectionClass(Class c)(Code) | | Check whether c is a portable java reflection class like Method, Constructor, or Field
Parameters: c - Class True if portable |
isPrimitiveArray | public static boolean isPrimitiveArray(Object test)(Code) | | Determine whether test is a primitive array
Parameters: test - The object True if test is a non-null primitive array |
parseFullyQualifiedFieldName | public static ClassSpec parseFullyQualifiedFieldName(String fieldName) throws ParseException(Code) | | Convert fully-qualified field name like "mypackage.MyClass.myField" into a specification which
contains the fully-qualified class name and the field name.
Parameters: fieldName - Fully-qualified field name Specification of class/field names throws: ParseException - If the fieldName is not properly formatted |
|
|
|