Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

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