当前页面: 
在线文档首页 > 
JBoss Seam  1.1.5 API 英文版文档
Reflections (JBoss Seam API Documentation) - JBoss Seam  1.1.5 API 英文版文档
org.jboss.seam.util
Class Reflections
java.lang.Object
   org.jboss.seam.util.Reflections
org.jboss.seam.util.Reflections
- Direct Known Subclasses: 
- Interceptor
- public class Reflections 
- extends Object
 
| Method Summary | 
| static Class | classForName(String name)
 | 
| static Object | get(Field field,
    Object target)
 | 
| static Class | getCollectionElementType(Type collectionType)
 | 
| static Field | getField(Class clazz,
         String name)
 | 
| static Method | getGetterMethod(Class clazz,
                String name)
 | 
| static Class | getMapKeyType(Type collectionType)
 | 
| static Method | getMethod(Annotation annotation,
          String name)
 | 
| static Method | getSetterMethod(Class clazz,
                String name)
 | 
| static Object | invoke(Method method,
       Object target,
       Object... args)
 | 
| static Object | invokeAndWrap(Method method,
              Object target,
              Object... args)
 | 
| static void | set(Field field,
    Object target,
    Object value)
 | 
| static void | setAndWrap(Field field,
           Object target,
           Object value)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Reflections
public Reflections()
invoke
public static Object invoke(Method method,
                            Object target,
                            Object... args)
                     throws Exception
- 
- Throws:
- Exception
 
get
public static Object get(Field field,
                         Object target)
                  throws Exception
- 
- Throws:
- Exception
 
set
public static void set(Field field,
                       Object target,
                       Object value)
                throws Exception
- 
- Throws:
- Exception
 
setAndWrap
public static void setAndWrap(Field field,
                              Object target,
                              Object value)
- 
 
invokeAndWrap
public static Object invokeAndWrap(Method method,
                                   Object target,
                                   Object... args)
- 
 
classForName
public static Class classForName(String name)
                          throws ClassNotFoundException
- 
- Throws:
- ClassNotFoundException
 
getCollectionElementType
public static Class getCollectionElementType(Type collectionType)
- 
 
getMapKeyType
public static Class getMapKeyType(Type collectionType)
- 
 
getSetterMethod
public static Method getSetterMethod(Class clazz,
                                     String name)
- 
 
getGetterMethod
public static Method getGetterMethod(Class clazz,
                                     String name)
- 
 
getField
public static Field getField(Class clazz,
                             String name)
- 
 
getMethod
public static Method getMethod(Annotation annotation,
                               String name)
-