/** * Return a List of SA Fields for the fields declared in this class. Inherited fields are not * included. Return an empty list if there are no fields declared in this class. Only designed for * use in a debugging system. */ public List getImmediateFields() { // A list of Fields for each field declared in this class/interface, // not including inherited fields. TypeArray fields = getFields(); int length = (int) fields.getLength(); List immediateFields = new ArrayList(length / NEXT_OFFSET); for (int index = 0; index < length; index += NEXT_OFFSET) { immediateFields.add(getFieldByIndex(index)); } return immediateFields; }
/** * Return a List containing an SA InstanceKlass for each interface named in this class's * 'implements' clause. */ public List getDirectImplementedInterfaces() { // Contains an InstanceKlass for each interface in this classes // 'implements' clause. ObjArray interfaces = getLocalInterfaces(); int length = (int) interfaces.getLength(); List directImplementedInterfaces = new ArrayList(length); for (int index = 0; index < length; index++) { directImplementedInterfaces.add(interfaces.getObjAt(index)); } return directImplementedInterfaces; }