package untitled1;import java.lang.reflect.*;public class Untitled1 {
  public Untitled1() {
  }
  public void test(DictInfo d) throws Exception{
    Class c=Class.forName("untitled1.DictInfo");
    Field[] f=c.getFields();
    for(int i=0;i<f.length;i++){
      f[i].set(d,f[i].getName());
    }
  }
  public static void main(String[] args) throws Exception{
    Untitled1 untitled11 = new Untitled1();
    DictInfo d=new DictInfo();
    untitled11.test(d);
    System.out.println(d);
  }}class DictInfo{
        public String sType = null;
        public String sCode = null;
        public String sValue = null;
        public String toString(){
          return "sType="+this.sType+";sCode="+this.sCode+";sValue="+this.sValue;
        }
}