类 AccessUtil


  • public class AccessUtil
    extends java.lang.Object
    Utility methods for working with access flags. For convenience, this class defines access levels, in ascending order: PRIVATE, PACKAGE_VISIBLE, PROTECTED, and PUBLIC.
    • 构造器概要

      构造器 
      构造器 说明
      AccessUtil()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static boolean accepted​(int accessFlags, int requiredSetAccessFlags, int requiredUnsetAccessFlags)
      Returns whether the given access flags match the required set and unset access flags.
      static int accessFlags​(int accessLevel)
      Returns the corresponding access flags of the given access level.
      static int accessLevel​(int accessFlags)
      Returns the corresponding access level of the given access flags.
      static int replaceAccessFlags​(int accessFlags, int newAccessFlags)
      Replaces the access part of the given access flags.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait