1 package gov.nasa.jpf.jvm; 20 21 32 public class DynamicFields extends Fields { 33 34 37 public DynamicFields (String t, ClassInfo ci) { 38 super(t, ci, ci.getInstanceDataSize()); 39 ci.initializeInstanceData(this); 40 } 41 42 public FieldInfo getFieldInfo (String clsBase, String fname) { 45 return ci.getInstanceField(clsBase, fname); 46 } 47 48 public int getNumberOfFields() { 49 return ci.getNumberOfInstanceFields(); 50 } 51 52 public FieldInfo getFieldInfo (int fieldIndex) { 53 return ci.getInstanceField( fieldIndex); 54 } 55 56 public String getLogChar () { 57 return "#"; 58 } 59 60 public boolean equals (Object o) { 61 if (o == null) { 62 return false; 63 } 64 65 if (!(o instanceof DynamicFields)) { 66 return false; 67 } 68 69 return super.equals(o); 70 } 71 } 72 | Popular Tags |