IT. Expert System.

Java Standard Edition (SE)

Accessible


com.sun.jdi

Interface Accessible

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


    @Exported
    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

      All Methods Instance Methods Abstract Methods 
      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.
    • Method Detail

      • modifiers

        int modifiers()
        Returns the JavaTM programming language modifiers, encoded in an integer.

        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).

      • isPrivate

        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 Integer.TYPE, the return value is always false.
        Returns:
        true for items with private access; false otherwise.
      • isPackagePrivate

        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 Integer.TYPE, the return value is always false.
        Returns:
        true for items with package private access; false otherwise.
      • isProtected

        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 Integer.TYPE, the return value is always false.
        Returns:
        true for items with private access; false otherwise.
      • isPublic

        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 Integer.TYPE, the return value is always true.
        Returns:
        true for items with public access; false otherwise.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 123 / . Delta: 0.03082 с