@Exported
public interface Accessible
| Modifier and Type | Method and Description | 
|---|---|
| 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 JavaTM
 programming language modifiers, encoded in an integer. | 
int modifiers()
 The modifier encodings are defined in
 The Java™ Virtual Machine Specification
 in the access_flag tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).
boolean isPrivate()
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 Integer.TYPE,
 the return value is always false.true for items with private access;
 false otherwise.boolean isPackagePrivate()
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 Integer.TYPE,
 the return value is always false.true for items with package private access;
 false otherwise.boolean isProtected()
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 Integer.TYPE,
 the return value is always false.true for items with private access;
 false otherwise.boolean isPublic()
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 Integer.TYPE,
 the return value is always true.true for items with public access;
 false otherwise.
 Copyright © 1999, 2025, Oracle and/or its affiliates.  All rights reserved.