snaker-core/src/main/java/org/snaker/engine/helper/ReflectHelper.java
public static void setFieldValue(Object obj, String fieldName,
			Object fieldValue) {
		Field field = getField(obj, fieldName);
		if (field != null) {
			try {
				field.setAccessible(true);
				field.set(obj, fieldValue);
			} catch (IllegalArgumentException e) {
				e.printStackTrace();
			} catch (IllegalAccessException e) {
				e.printStackTrace();
			}
		}
	}
public static void setFieldValue(Object obj, String fieldName,
			Object fieldValue) {
		Field field = getField(obj, fieldName);
		if (field != null) {
			try {
				field.setAccessible(true);
				field.set(obj, fieldValue);
			} catch (IllegalArgumentException e) {
				e.printStackTrace();
			} catch (IllegalAccessException e) {
				e.printStackTrace();
			}
		}
	}
利用反射设置指定对象的指定属性为指定的值
@param obj 目标对象
@param fieldName 目标属性
@param fieldValue 目标值