KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > api > debugger > jpda > JPDAClassType


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.api.debugger.jpda;
21
22 import com.sun.jdi.AbsentInformationException;
23
24 import java.util.List JavaDoc;
25
26 /**
27  * Represents type of an object (class, interface, array) in the debugged process.
28  *
29  * <pre style="background-color: rgb(255, 255, 102);">
30  * Since JDI interfaces evolve from one version to another, it's strongly recommended
31  * not to implement this interface in client code. New methods can be added to
32  * this interface at any time to keep up with the JDI functionality.</pre>
33  *
34  * @since 2.7
35  *
36  * @author Martin Entlicher
37  */

38 public interface JPDAClassType {
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 JavaDoc getName();
51     
52     /**
53      * Get the source name of this type.
54      * @return the source file name of this type.
55      */

56     String JavaDoc getSourceName() throws AbsentInformationException;
57     
58     /**
59      * Returns the class object variable, that corresponds to this type in the target VM.
60      * @return the class object variable.
61      */

62     ClassVariable classObject();
63     
64     /**
65      * Provide a list of static fields declared in this type.
66      * @return the list of {@link org.netbeans.api.debugger.jpda.Field} objects
67      * representing static fields.
68      */

69     List JavaDoc<Field> staticFields();
70     
71 }
72
Popular Tags