Package org.fest.reflect.util
Class Accessibles
java.lang.Object
org.fest.reflect.util.Accessibles
Understands utility methods related to
AccessibleObject
s.- Author:
- Alex Ruiz
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
setAccessible
(AccessibleObject o, boolean accessible) static void
setAccessibleIgnoringExceptions
(AccessibleObject o, boolean accessible) Sets theaccessible
flag of the given
to the givenAccessibleObject
boolean
value, ignoring any thrown exception.
-
Method Details
-
setAccessibleIgnoringExceptions
Sets theaccessible
flag of the given
to the givenAccessibleObject
boolean
value, ignoring any thrown exception.- Parameters:
o
- the givenAccessibleObject
.accessible
- the value to set theaccessible
flag to.
-
makeAccessible
- Parameters:
o
- the givenAccessibleObject
.- Throws:
SecurityException
- if the request is denied.
-
setAccessible
- Parameters:
o
- the givenAccessibleObject
.accessible
- the value to set theaccessible
flag to.- Throws:
SecurityException
- if the request is denied.
-