Class AccessBits

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL
      Deprecated.
      Combine all kinds of access, including RESOURCE.
      static int ANNOTATION
      Deprecated.
      Predefined set of access suitable for annotations.
      static int CLASS
      Deprecated.
      Class access, for example when Class.forName(String) is invoked with a non constant parameter that can't be recognized automatically by the native image compiler.
      static int DECLARED_CONSTRUCTORS
      Deprecated.
      Declared constructors access: public, protected, default (package) access, and private ones.
      static int DECLARED_FIELDS
      Deprecated.
      Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.
      static int DECLARED_METHODS
      Deprecated.
      Declared methods access: public, protected, default (package) access, and private, but excluding inherited ones.
      static int FULL_REFLECTION
      Deprecated.
      Full reflection access.
      static int INTERFACE
      Deprecated.
      Predefined set of access suitable for interfaces.
      static int JNI
      Deprecated.
      Type must be accessible from JNI code (it will be placed in the jni-config.json and not reflect-config.json)
      static int LOAD_AND_CONSTRUCT
      Deprecated.
      Class and declared constructor access (default).
      static int LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS
      Deprecated.
      Class, declared constructor and public method access.
      static int NONE
      Deprecated.
      No access.
      static int PUBLIC_CONSTRUCTORS
      Deprecated.
      Public constructors.
      static int PUBLIC_METHODS
      Deprecated.
      Public methods access: public methods of the class including inherited ones.
      static int QUERY_DECLARED_CONSTRUCTORS
      Deprecated.
      Declared constructor's metadata query: public, protected, default (package) access, and private ones.
      static int QUERY_DECLARED_METHODS
      Deprecated.
      Declared method's metadata query: public, protected, default (package) access, and private, but excluding inherited ones.
      static int QUERY_PUBLIC_CONSTRUCTORS
      Deprecated.
      Queried public constructors.
      static int QUERY_PUBLIC_METHODS
      Deprecated.
      Public method's metadata query access: public methods of the class including inherited ones.
      static int RESOURCE
      Deprecated.
      Resource access required when ASM is used at runtime to access to *.class resources.
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessBits()
      Deprecated.
       
      AccessBits​(int value)
      Deprecated.
       
    • Field Detail

      • RESOURCE

        public static final int RESOURCE
        Deprecated.
        Resource access required when ASM is used at runtime to access to *.class resources.
        See Also:
        Constant Field Values
      • CLASS

        public static final int CLASS
        Deprecated.
        Class access, for example when Class.forName(String) is invoked with a non constant parameter that can't be recognized automatically by the native image compiler.
        See Also:
        Constant Field Values
      • DECLARED_FIELDS

        public static final int DECLARED_FIELDS
        Deprecated.
        Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.
        See Also:
        Class.getDeclaredFields(), Constant Field Values
      • JNI

        public static final int JNI
        Deprecated.
        Type must be accessible from JNI code (it will be placed in the jni-config.json and not reflect-config.json)
        See Also:
        Constant Field Values
      • QUERY_DECLARED_CONSTRUCTORS

        public static final int QUERY_DECLARED_CONSTRUCTORS
        Deprecated.
        Declared constructor's metadata query: public, protected, default (package) access, and private ones.
        See Also:
        Class.getDeclaredConstructors(), Constant Field Values
      • FULL_REFLECTION

        public static final int FULL_REFLECTION
        Deprecated.
        Full reflection access.
        See Also:
        Constant Field Values
      • ANNOTATION

        public static final int ANNOTATION
        Deprecated.
        Predefined set of access suitable for annotations.
        See Also:
        Constant Field Values
      • INTERFACE

        public static final int INTERFACE
        Deprecated.
        Predefined set of access suitable for interfaces.
        See Also:
        Constant Field Values
      • LOAD_AND_CONSTRUCT

        public static final int LOAD_AND_CONSTRUCT
        Deprecated.
        Class and declared constructor access (default).
        See Also:
        Constant Field Values
      • LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS

        public static final int LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS
        Deprecated.
        Class, declared constructor and public method access.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AccessBits

        public AccessBits()
        Deprecated.
      • AccessBits

        public AccessBits​(int value)
        Deprecated.
    • Method Detail

      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object that)
        Deprecated.
        Overrides:
        equals in class Object
      • getAccess

        public static TypeAccess[] getAccess​(int value)
        Deprecated.
      • forValue

        public static final AccessBits forValue​(int value)
        Deprecated.
      • forBits

        public static final AccessBits forBits​(int... bits)
        Deprecated.
      • isResourceAccessRequired

        public boolean isResourceAccessRequired()
        Deprecated.
      • hasAccess

        public boolean hasAccess​(AccessBits accessBitsToCheck)
        Deprecated.
      • toString

        public static String toString​(Integer value)
        Deprecated.
      • isResourceAccessRequired

        public static boolean isResourceAccessRequired​(Integer typeKind)
        Deprecated.
      • getValue

        public int getValue()
        Deprecated.
      • compareAccess

        public static int compareAccess​(int currentAccess,
                                        int newAccess)
        Deprecated.
        Compare a current access level with a proposed access level and return what the new proposed access is adding.
        Parameters:
        currentAccess - the current access level
        newAccess - the new access level
        Returns:
        what the new proposed access is adding
      • isSet

        public static boolean isSet​(int value,
                                    int mask)
        Deprecated.