+ In order to be able to provide heap walking functionality, + we need methods for retrieval of class instances and + back references. +
+
+ Added methods:
+ Field.getDeclaringClass()
,
+ JPDAClassType.getClassLoader()
,
+ JPDAClassType.getSuperClass()
,
+ JPDAClassType.getInstanceCount()
,
+ JPDAClassType.getInstances()
,
+ JPDADebugger.canGetInstanceInfo()
,
+ JPDADebugger.getAllClasses()
,
+ JPDADebugger.getClassesByName()
,
+ JPDADebugger.getInstanceCounts()
,
+ ObjectVariable.getReferringObjects()
,
+ ObjectVariable.getClassType()
,
+ ObjectVariable.getUniqueID()
.
+
+ Added classes:
+ VariableType
,
+ JPDAArrayType
.
+
null
+ * if the class was loaded through the bootstrap class loader.
+ */
+ ObjectVariable getClassLoader();
+
+ /**
+ * Gets the superclass of this class.
+ * @return the superclass of this class in the debuggee, or null
+ * if no such class exists.
+ */
+ Super getSuperClass();
+
+ /**
* Provide a list of static fields declared in this type.
* @return the list of {@link org.netbeans.api.debugger.jpda.Field} objects
* representing static fields.
*/
Listtrue
when the feature is supported, false
otherwise.
+ */
+ public boolean canGetInstanceInfo() {
+ return false;
+ }
+
+ /**
+ * Get the list of all classes in the debuggee.
+ * @return The list of all classes.
+ */
+ public Listlong
containing one instance counts for
+ * each respective element in the classTypes
list.
+ */
+ public long[] getInstanceCounts(List