org.seasar.framework.util
クラス ClassUtil
java.lang.Object
org.seasar.framework.util.ClassUtil
- public final class ClassUtil
- extends Object
- 作成者:
- higa
メソッドの概要 |
static String |
concatName(String s1,
String s2)
|
static Class |
convertClass(String className)
|
static Class |
forName(String className)
|
static Constructor |
getConstructor(Class clazz,
Class[] argTypes)
|
static Constructor |
getDeclaredConstructor(Class clazz,
Class[] argTypes)
|
static Field |
getDeclaredField(Class clazz,
String fieldName)
|
static Method |
getDeclaredMethod(Class clazz,
String methodName,
Class[] argTypes)
|
static Field |
getField(Class clazz,
String fieldName)
|
static Method |
getMethod(Class clazz,
String methodName,
Class[] argTypes)
|
static String |
getPackageName(Class clazz)
|
static Class |
getPrimitiveClass(Class clazz)
|
static Class |
getPrimitiveClassIfWrapper(Class clazz)
|
static String |
getResourcePath(Class clazz)
|
static String |
getResourcePath(String className)
|
static String |
getShortClassName(Class clazz)
|
static String |
getShortClassName(String className)
|
static String |
getSimpleClassName(Class clazz)
|
static Class |
getWrapperClass(Class clazz)
|
static Class |
getWrapperClassIfPrimitive(Class clazz)
|
static boolean |
isAssignableFrom(Class toClass,
Class fromClass)
|
static Object |
newInstance(Class clazz)
|
static Object |
newInstance(String className)
|
static String[] |
splitPackageAndShortClassName(String className)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forName
public static Class forName(String className)
throws ClassNotFoundRuntimeException
- 例外:
ClassNotFoundRuntimeException
convertClass
public static Class convertClass(String className)
throws ClassNotFoundRuntimeException
- 例外:
ClassNotFoundRuntimeException
newInstance
public static Object newInstance(Class clazz)
throws InstantiationRuntimeException,
IllegalAccessRuntimeException
- 例外:
InstantiationRuntimeException
IllegalAccessRuntimeException
newInstance
public static Object newInstance(String className)
throws ClassNotFoundRuntimeException,
InstantiationRuntimeException,
IllegalAccessRuntimeException
- 例外:
ClassNotFoundRuntimeException
InstantiationRuntimeException
IllegalAccessRuntimeException
isAssignableFrom
public static boolean isAssignableFrom(Class toClass,
Class fromClass)
getPrimitiveClass
public static Class getPrimitiveClass(Class clazz)
getPrimitiveClassIfWrapper
public static Class getPrimitiveClassIfWrapper(Class clazz)
getWrapperClass
public static Class getWrapperClass(Class clazz)
getWrapperClassIfPrimitive
public static Class getWrapperClassIfPrimitive(Class clazz)
getConstructor
public static Constructor getConstructor(Class clazz,
Class[] argTypes)
getDeclaredConstructor
public static Constructor getDeclaredConstructor(Class clazz,
Class[] argTypes)
getMethod
public static Method getMethod(Class clazz,
String methodName,
Class[] argTypes)
getDeclaredMethod
public static Method getDeclaredMethod(Class clazz,
String methodName,
Class[] argTypes)
getField
public static Field getField(Class clazz,
String fieldName)
getDeclaredField
public static Field getDeclaredField(Class clazz,
String fieldName)
getPackageName
public static String getPackageName(Class clazz)
getShortClassName
public static String getShortClassName(Class clazz)
getShortClassName
public static String getShortClassName(String className)
splitPackageAndShortClassName
public static String[] splitPackageAndShortClassName(String className)
getSimpleClassName
public static String getSimpleClassName(Class clazz)
concatName
public static String concatName(String s1,
String s2)
getResourcePath
public static String getResourcePath(String className)
getResourcePath
public static String getResourcePath(Class clazz)
Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.