22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.jdi;
27
28 /**
29 * Provides information on the accessibility of a type or type component.
30 * Mirrors for program elements which allow an
31 * an access specifier (private, protected, public) provide information
32 * on that part of the declaration through this interface.
33 *
34 * @author Robert Field
35 * @author Gordon Hirsch
36 * @author James McIlree
37 * @since 1.3
38 */
39 public interface Accessible {
40
41 /**
42 * Returns the Java™ programming language modifiers, encoded
43 * in an integer.
44 * <p>
45 * The modifier encodings are defined in
46 * <cite>The Java™ Virtual Machine Specification</cite>
47 * in the <code>access_flag</code> tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).
48 */
49 public int modifiers();
50
51 /**
52 * Determines if this object mirrors a private item.
53 * For {@link ArrayType}, the return value depends on the
54 * array component type. For primitive arrays the return value
55 * is always false. For object arrays, the return value is the
56 * same as would be returned for the component type.
57 * For primitive classes, such as {@link java.lang.Integer#TYPE},
58 * the return value is always false.
59 *
60 * @return <code>true</code> for items with private access;
61 * <code>false</code> otherwise.
62 */
63 boolean isPrivate();
64
65 /**
66 * Determines if this object mirrors a package private item.
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.jdi;
27
28 /**
29 * Provides information on the accessibility of a type or type component.
30 * Mirrors for program elements which allow an
31 * an access specifier (private, protected, public) provide information
32 * on that part of the declaration through this interface.
33 *
34 * @author Robert Field
35 * @author Gordon Hirsch
36 * @author James McIlree
37 * @since 1.3
38 */
39 public interface Accessible {
40
41 /**
42 * Returns the Java programming language modifiers, encoded
43 * in an integer.
44 * <p>
45 * The modifier encodings are defined in
46 * <cite>The Java Virtual Machine Specification</cite>
47 * in the <code>access_flag</code> tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).
48 */
49 public int modifiers();
50
51 /**
52 * Determines if this object mirrors a private item.
53 * For {@link ArrayType}, the return value depends on the
54 * array component type. For primitive arrays the return value
55 * is always false. For object arrays, the return value is the
56 * same as would be returned for the component type.
57 * For primitive classes, such as {@link java.lang.Integer#TYPE},
58 * the return value is always false.
59 *
60 * @return <code>true</code> for items with private access;
61 * <code>false</code> otherwise.
62 */
63 boolean isPrivate();
64
65 /**
66 * Determines if this object mirrors a package private item.
|