# yixsoft-classutils **Repository Path**: yixsoft/yixsoft-classutils ## Basic Information - **Project Name**: yixsoft-classutils - **Description**: Reflection tool to detect class getter/setters. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-20 - **Last Updated**: 2024-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YixSoft ClassUtils Class getter/setter scanner. Can recognize getXXX()/setXXX() Or fieldName() /fieldName(value) formatted getter/setter. ## Get started ### Maven ```xml com.yixsoft yixsoft-classutils 1.0.1 ``` ## Examples ```java import com.yixsoft.support.classutils.ClassFieldsDescription; ClassFieldsDescription classDesc = new ClassFieldsDescription<>(Test.class); List fields = classDesc.getFields(); ``` ### FieldDescription - canRead(): boolean - is getter - canWrite(): boolean - is setter - getFieldName(): String - Field name - getFieldType(): Class - Field type, depends on return type of getter or setter arg type. - getFieldParameterizedType(): ParameterizedType - Api for parameterized types - findAnnotation(Class annotationType): Annotation - Find annotation. Including field annotation and getter/setter annotations. - readField(Object instance): Object - invoke getter - writeField(Object instance,Object value) - invoke setter