code: public void readWriteField(Field field,StringBuilder writesb,StringBuilder readsb)
  	{
  		Class<?> type=field.getType();
  		String varName=field.getName();
  		//泛型类型
  		Type[] actTypes=new Type[]{};
  		if(field.getGenericType() instanceof ParameterizedType)
  		{
  			actTypes=((ParameterizedType)field.getGenericType()).getActualTypeArguments();
  		}
  		//变量声明
  		declearVar(type, varName, writesb, readsb,actTypes);
  		if(type.isPrimitive() && type.equals(boolean.class))
  		{
  			writesb.append("\t").append(varName+"=is"+fieldUper(field.getName())+"();").append("\n");
  		}else
  		{
  			writesb.append("\t").append(varName+"=get"+fieldUper(field.getName())+"();").append("\n");
  		}
  		readWriteVar(type, varName, writesb, readsb,true,actTypes);//读写属性变量
  		readsb.append("\t").append("set" + fieldUper(field.getName()) + "(" + varName + ");").append("\n");
  	}
docs: 读写属性
  @param field
  @param writesb
  @param readsb