| public class java.lang.reflect AccessibleObject
|
Java SE 6 |
Setting the accessible flag in a reflected object permits sophisticated applications with sufficient privilege, such as Java Object Serialization or other persistence mechanisms, to manipulate objects in a manner that would normally be prohibited.
| since | 1.2 |
| See also | java.lang.reflect.Field, java.lang.reflect.Method, java.lang.reflect.Constructor, java.lang.reflect.ReflectPermission |
| Constructors | |
|---|---|
| protected | AccessibleObject() Constructor: only used by the Java Virtual Machine. |
| Properties | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static void | setAccessible(AccessibleObject[] array, boolean flag) throws SecurityException Convenience method to set the accessible flag for an array of objects with a single security check (for efficiency). First, if there is a security manager, its
A
| ||||||||
| public void | setAccessible(boolean flag) throws SecurityException Set the accessible flag for this object to the indicated boolean value. A value of true indicates that the reflected object should suppress Java language access checking when it is used. A value of false indicates that the reflected object should enforce Java language access checks. First, if there is a security manager, its
A A
| ||||||||
| public boolean | isAccessible() Get the value of the accessible flag for this object.
| ||||||||
| public Annotation<T> | getAnnotation(Class annotationClass)
| ||||||||
| public boolean | isAnnotationPresent(Class annotationClass)
| ||||||||
| public Annotation[] | getAnnotations()
| ||||||||
| public Annotation[] | getDeclaredAnnotations()
| ||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|