equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package java.lang.reflect; |
26 package java.lang.reflect; |
27 |
27 |
28 import java.security.AccessController; |
|
29 import java.util.StringJoiner; |
28 import java.util.StringJoiner; |
30 import jdk.internal.reflect.LangReflectAccess; |
|
31 import jdk.internal.reflect.ReflectionFactory; |
|
32 |
29 |
33 /** |
30 /** |
34 * The Modifier class provides {@code static} methods and |
31 * The Modifier class provides {@code static} methods and |
35 * constants to decode class and member access modifiers. The sets of |
32 * constants to decode class and member access modifiers. The sets of |
36 * modifiers are represented as integers with distinct bit positions |
33 * modifiers are represented as integers with distinct bit positions |
44 * @author Nakul Saraiya |
41 * @author Nakul Saraiya |
45 * @author Kenneth Russell |
42 * @author Kenneth Russell |
46 * @since 1.1 |
43 * @since 1.1 |
47 */ |
44 */ |
48 public class Modifier { |
45 public class Modifier { |
49 |
|
50 /* |
|
51 * Bootstrapping protocol between java.lang and java.lang.reflect |
|
52 * packages |
|
53 */ |
|
54 static { |
|
55 ReflectionFactory factory = AccessController.doPrivileged( |
|
56 new ReflectionFactory.GetReflectionFactoryAction()); |
|
57 factory.setLangReflectAccess(new java.lang.reflect.ReflectAccess()); |
|
58 } |
|
59 |
46 |
60 /** |
47 /** |
61 * Return {@code true} if the integer argument includes the |
48 * Return {@code true} if the integer argument includes the |
62 * {@code public} modifier, {@code false} otherwise. |
49 * {@code public} modifier, {@code false} otherwise. |
63 * |
50 * |