KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IJavaModifiers


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.debug.core;
12
13  
14 import org.eclipse.debug.core.DebugException;
15
16 /**
17  * Modifiers common to Java debug elements that have associated Java
18  * member declarations. For example, the method associated with a stack frame,
19  * or the field associated with a variable.
20  * <p>
21  * Clients are not intended to implement this interface.
22  * </p>
23  */

24 public interface IJavaModifiers {
25
26     /**
27      * Returns whether the associated Java construct is declared as public.
28      *
29      * @return whether the associated Java construct is declared as public
30      * @exception DebugException if this method fails. Reasons include:
31      * <ul><li>Failure communicating with the VM. The DebugException's
32      * status code contains the underlying exception responsible for
33      * the failure.</li></ul>
34      */

35     public boolean isPublic() throws DebugException;
36     /**
37      * Returns whether the associated Java construct is declared as private.
38      *
39      * @return whether the associated Java construct is declared as private
40      * @exception DebugException if this method fails. Reasons include:
41      * <ul><li>Failure communicating with the VM. The DebugException's
42      * status code contains the underlying exception responsible for
43      * the failure.</li></ul>
44      */

45     public boolean isPrivate() throws DebugException;
46     /**
47      * Returns whether the associated Java construct is declared as protected.
48      *
49      * @return whether the associated Java construct is declared as protected
50      * @exception DebugException if this method fails. Reasons include:
51      * <ul><li>Failure communicating with the VM. The DebugException's
52      * status code contains the underlying exception responsible for
53      * the failure.</li></ul>
54      */

55     public boolean isProtected() throws DebugException;
56     /**
57      * Returns whether the associated Java construct is declared with
58      * no protection modifier (package private protection).
59      *
60      * @return whether the associated Java construct is declared as package private
61      * @exception DebugException if this method fails. Reasons include:
62      * <ul><li>Failure communicating with the VM. The DebugException's
63      * status code contains the underlying exception responsible for
64      * the failure.</li></ul>
65      */

66     public boolean isPackagePrivate() throws DebugException;
67     /**
68      * Returns whether the associated Java construct is declared as final.
69      *
70      * @return whether the associated Java construct is declared as final
71      * @exception DebugException if this method fails. Reasons include:
72      * <ul><li>Failure communicating with the VM. The DebugException's
73      * status code contains the underlying exception responsible for
74      * the failure.</li></ul>
75      */

76     public boolean isFinal() throws DebugException;
77     /**
78      * Returns whether the associated Java construct is declared as static.
79      *
80      * @return whether the associated Java construct is declared as static
81      * @exception DebugException if this method fails. Reasons include:
82      * <ul><li>Failure communicating with the VM. The DebugException's
83      * status code contains the underlying exception responsible for
84      * the failure.</li></ul>
85      */

86     public boolean isStatic() throws DebugException;
87     /**
88      * Returns whether the associated Java construct is synthetic.
89      * Synthetic members are generated by the compiler
90      * and are not present in source code.
91      *
92      * @return whether the associated Java construct is synthetic
93      * @exception DebugException if this method fails. Reasons include:
94      * <ul><li>Failure communicating with the VM. The DebugException's
95      * status code contains the underlying exception responsible for
96      * the failure.</li></ul>
97      */

98     public boolean isSynthetic() throws DebugException;
99
100
101 }
102
103
104
Popular Tags