Overview | Package | Class | Use | Tree | Index | Help
| Java Debug Interface
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jdi
Interface Accessible

All Known Subinterfaces:
  ArrayType, ClassType, Field, InterfaceType, Method, ReferenceType, TypeComponent

public interface Accessible

Provides information on the accessibility of a type or type component. Mirrors for program elements which allow an an access specifier (private, protected, public) provide information on that part of the declaration through this interface.

Since:
  1.3

Method Summary
`boolean` | `isPackagePrivate()` Determines if this object mirrors a package private item.
`boolean` | `isPrivate()` Determines if this object mirrors a private item.
`boolean` | `isProtected()` Determines if this object mirrors a protected item.
`boolean` | `isPublic()` Determines if this object mirrors a public item.
`int` | `modifiers()` Returns the Java language modifiers, encoded in an integer.

Method Detail

### modifiers

    public int modifiers()

  Returns the Java language modifiers, encoded in an integer.

  The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.

### isPrivate

    public boolean isPrivate()

  Determines if this object mirrors a private item. For `ArrayType`, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as `java.lang.Integer#TYPE`, the return value is always false.
  Returns:
    `true` for items with private access; `false` otherwise.

### isPackagePrivate

    public boolean isPackagePrivate()

  Determines if this object mirrors a package private item. A package private item is declared with no access specifier. For `ArrayType`, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as `java.lang.Integer#TYPE`, the return value is always false.
  Returns:
    `true` for items with package private access; `false` otherwise.

### isProtected

    public boolean isProtected()

  Determines if this object mirrors a protected item. For `ArrayType`, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as `java.lang.Integer#TYPE`, the return value is always false.
  Returns:
    `true` for items with private access; `false` otherwise.

### isPublic

    public boolean isPublic()

  Determines if this object mirrors a public item. For `ArrayType`, the return value depends on the array component type. For primitive arrays the return value is always true. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as `java.lang.Integer#TYPE`, the return value is always true.
  Returns:
    `true` for items with public access; `false` otherwise.

Overview | Package | Class | Use | Tree | Index | Help
| Java Debug Interface
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD