Class AccessUtil

java.lang.Object
proguard.classfile.util.AccessUtil

public class AccessUtil extends Object
Utility methods for working with access flags. For convenience, this class defines access levels, in ascending order: PRIVATE, PACKAGE_VISIBLE, PROTECTED, and PUBLIC.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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