1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > 存放字段属性信息

存放字段属性信息

时间:2023-01-25 01:41:22

相关推荐

存放字段属性信息

package com.opslab.util.bean;

import java.lang.reflect.Method;

/**

* 存放字段属性信息

*/

public class BeanStruct {

//字段的名字

private String fieldName;

//字段的类型

private Object fieldType;

//字段值读方法

private Method readMethod;

//字段值写方法

private Method writeMethod;

private boolean isDeclared;

public BeanStruct(String fieldName, Object fieldType, Method readMethod, Method writeMethod, boolean isDeclared) {

this.fieldName = fieldName;

this.fieldType = fieldType;

this.readMethod = readMethod;

this.writeMethod = writeMethod;

}

public boolean isDeclared() {

return isDeclared;

}

public void setDeclared(boolean isDeclared) {

this.isDeclared = isDeclared;

}

public String getFieldName() {

return fieldName;

}

public void setFieldName(String fieldName) {

this.fieldName = fieldName;

}

public Object getFieldType() {

return fieldType;

}

public void setFieldType(Object fieldType) {

this.fieldType = fieldType;

}

public Method getReadMethod() {

return readMethod;

}

public void setReadMethod(Method readMethod) {

this.readMethod = readMethod;

}

public Method getWriteMethod() {

return writeMethod;

}

public void setWriteMethod(Method writeMethod) {

this.writeMethod = writeMethod;

}

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。