Lines 13-19
Link Here
|
13 |
* "Portions Copyrighted [year] [name of copyright owner]" |
13 |
* "Portions Copyrighted [year] [name of copyright owner]" |
14 |
* |
14 |
* |
15 |
* The Original Software is NetBeans. The Initial Developer of the Original |
15 |
* The Original Software is NetBeans. The Initial Developer of the Original |
16 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun |
16 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun |
17 |
* Microsystems, Inc. All Rights Reserved. |
17 |
* Microsystems, Inc. All Rights Reserved. |
18 |
*/ |
18 |
*/ |
19 |
|
19 |
|
Lines 35-53
Link Here
|
35 |
* |
35 |
* |
36 |
* @author Martin Entlicher |
36 |
* @author Martin Entlicher |
37 |
*/ |
37 |
*/ |
38 |
public interface JPDAClassType { |
38 |
public interface JPDAClassType extends VariableType { |
39 |
|
|
|
40 |
/* |
41 |
List<ObjectVariable> instances(long maxInstances); |
42 |
|
43 |
long instanceCount(); |
44 |
*/ |
45 |
|
46 |
/** |
47 |
* Get the name of this type. |
48 |
* @return fully qualified name of this type. |
49 |
*/ |
50 |
String getName(); |
51 |
|
39 |
|
52 |
/** |
40 |
/** |
53 |
* Get the source name of this type. |
41 |
* Get the source name of this type. |
Lines 62-71
Link Here
|
62 |
ClassVariable classObject(); |
50 |
ClassVariable classObject(); |
63 |
|
51 |
|
64 |
/** |
52 |
/** |
|
|
53 |
* Gets the classloader object which loaded the class corresponding to this type. |
54 |
* @return an object variable representing the classloader, or <code>null</code> |
55 |
* if the class was loaded through the bootstrap class loader. |
56 |
*/ |
57 |
ObjectVariable getClassLoader(); |
58 |
|
59 |
/** |
60 |
* Gets the superclass of this class. |
61 |
* @return the superclass of this class in the debuggee, or <code>null</code> |
62 |
* if no such class exists. |
63 |
*/ |
64 |
Super getSuperClass(); |
65 |
|
66 |
/** |
65 |
* Provide a list of static fields declared in this type. |
67 |
* Provide a list of static fields declared in this type. |
66 |
* @return the list of {@link org.netbeans.api.debugger.jpda.Field} objects |
68 |
* @return the list of {@link org.netbeans.api.debugger.jpda.Field} objects |
67 |
* representing static fields. |
69 |
* representing static fields. |
68 |
*/ |
70 |
*/ |
69 |
List<Field> staticFields(); |
71 |
List<Field> staticFields(); |
|
|
72 |
|
73 |
/** |
74 |
* Retrieves the number of instances this class. |
75 |
* Use {@link JPDADebugger#canGetInstanceInfo} to determine if this operation is supported. |
76 |
* @return the number of instances. |
77 |
*/ |
78 |
long getInstanceCount() throws UnsupportedOperationException; |
79 |
|
80 |
/** |
81 |
* Returns instances of this class type. Only instances that are reachable |
82 |
* for the purposes of garbage collection are returned. |
83 |
* Use {@link JPDADebugger#canGetInstanceInfo} to determine if this operation is supported. |
84 |
* @param maxInstances the maximum number of instances to return. Must be non-negative. If zero, all instances are returned. |
85 |
* @return a List of object variables. |
86 |
*/ |
87 |
List<ObjectVariable> getInstances(long maxInstances) throws UnsupportedOperationException; |
70 |
|
88 |
|
71 |
} |
89 |
} |