1 package gov.nasa.jpf.jvm; 20 21 32 public class StaticFields extends Fields { 33 36 public StaticFields (ClassInfo ci) { 37 super(ci.getType(), ci, ci.getStaticDataSize()); 38 ci.initializeStaticData(this); 39 } 40 41 public FieldInfo getFieldInfo (String clsBase, String fname) { 42 return ci.getStaticField(clsBase, fname); 43 } 44 45 public String getLogChar () { 46 return "@"; 47 } 48 49 public boolean equals (Object o) { 50 if (o == null) { 51 return false; 52 } 53 54 if (!(o instanceof StaticFields)) { 55 return false; 56 } 57 58 return super.equals(o); 59 } 60 61 public FieldInfo getFieldInfo (int index) { 62 return ci.getStaticField(index); 63 } 64 65 public int getNumberOfFields () { 66 return ci.getNumberOfStaticFields(); 67 } 68 } 69 | Popular Tags |