Code example for Field

Methods: getGenericType, getModifiers, getName, getType

0
     * Constructor. 
     * @param field The field 
     */ 
    public Member(Field field)
    { 
        this.name = field.getName();
        this.type = field.getType();
        this.modifiers = field.getModifiers();
        this.genericType = field.getGenericType();
        this.property = false;
    } 
 
    /** 
     * Constructor. 
     * @param method The method 
     */ 
    public Member(Method method)
    { 
        this.name = ClassUtils.getFieldNameForJavaBeanGetter(method.getName());
        this.type = method.getReturnType();
        this.modifiers = method.getModifiers();