AccessibilityChanger
Date: 2015-09-18

org.mockito.internal.util.reflection

## Class AccessibilityChanger

- java.lang.Object
- - org.mockito.internal.util.reflection.AccessibilityChanger

-     public class AccessibilityChanger
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AccessibilityChanger()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `enableAccess(java.lang.reflect.AccessibleObject accessibleObject)` changes the accessibleObject accessibility and returns true if accessibility was changed
    `void` | `safelyDisableAccess(java.lang.reflect.AccessibleObject accessibleObject)` safely disables access

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### AccessibilityChanger

          public AccessibilityChanger()

  - ### Method Detail

    - #### safelyDisableAccess

          public void safelyDisableAccess(java.lang.reflect.AccessibleObject accessibleObject)

      safely disables access

    - #### enableAccess

          public void enableAccess(java.lang.reflect.AccessibleObject accessibleObject)

      changes the accessibleObject accessibility and returns true if accessibility was changed