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