1 // AccessibleObject.java - Base for reflection objects.
3 /* Copyright (C) 1998, 1999 Cygnus Solutions
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 package java.lang.reflect;
14 * @author Tom Tromey <tromey@cygnus.com>
15 * @date December 12, 1998
17 /* Written using JDK 1.2 beta docs.
18 * Status: Believed complete and correct.
21 public class AccessibleObject
23 protected AccessibleObject ()
28 boolean isAccessible ()
33 static void setAccessible (AccessibleObject[] array, boolean flag)
36 for (int i = 0; i < array.length; ++i)
40 void setAccessible (boolean flag)
46 private static final void checkPermission ()
48 SecurityManager sm = System.getSecurityManager();
49 // FIXME: sm.checkPermission(ReflectPermission ("suppressAccessChecks"))