|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jsesoft.ri.ReflectionInspectionHelpers
public class ReflectionInspectionHelpers
Provides helpers for reflection inspection.
Field Summary | |
---|---|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
DESCRIPTOR_TYPE
|
static java.lang.String |
DISPLAY_NAME
|
static java.lang.String |
GET
|
static java.lang.String |
IS
|
static java.lang.String |
NAME
|
static java.lang.String |
SET
|
Constructor Summary | |
---|---|
ReflectionInspectionHelpers()
|
Method Summary | |
---|---|
static java.lang.reflect.Method |
getGetter(java.lang.Class<?> inspected,
java.lang.reflect.Field field)
Inquires the getter method for a field. |
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.beans.PropertyDescriptor[] features,
java.lang.reflect.Field field)
Gets the BeanInfe PropertyDescriptor for the field. |
static java.lang.reflect.Method |
getSetter(java.lang.Class<?> inspected,
java.lang.reflect.Field field)
Inquires the setter method for a field. |
static boolean |
isGetter(java.lang.reflect.Method method)
Checks whether or not a method is a getter. |
static boolean |
isSetter(java.lang.reflect.Method method)
Checks whether or not a method is a setter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
public static final java.lang.String DISPLAY_NAME
public static final java.lang.String DESCRIPTION
public static final java.lang.String DESCRIPTOR_TYPE
public static final java.lang.String IS
public static final java.lang.String SET
public static final java.lang.String GET
Constructor Detail |
---|
public ReflectionInspectionHelpers()
Method Detail |
---|
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.beans.PropertyDescriptor[] features, java.lang.reflect.Field field)
features
- the BeanInfo PropertyDescriptorsfield
- the Field
public static boolean isSetter(java.lang.reflect.Method method)
method
- the method to check
public static boolean isGetter(java.lang.reflect.Method method)
method
- the method to check
public static java.lang.reflect.Method getGetter(java.lang.Class<?> inspected, java.lang.reflect.Field field)
inspected
- the inspected Classfield
- the inspected Field
public static java.lang.reflect.Method getSetter(java.lang.Class<?> inspected, java.lang.reflect.Field field)
inspected
- the inspected Classfield
- the inspected Field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |