< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java

Print this page

107     byte[] getRawClassTypeAnnotations(Class<?> klass);
108 
109     /**
110      * Get the array of bytes that is the class-file representation
111      * of this Executable's type annotations.
112      */
113     byte[] getRawExecutableTypeAnnotations(Executable executable);
114 
115     /**
116      * Get the int value of the Class's class-file access flags.
117      */
118     int getClassFileAccessFlags(Class<?> klass);
119 
120     /**
121      * Returns the elements of an enum class or null if the
122      * Class object does not represent an enum type;
123      * the result is uncloned, cached, and shared by all callers.
124      */
125     <E extends Enum<E>> E[] getEnumConstantsShared(Class<E> klass);
126 
127     /**
128      * Returns the big-endian packed minor-major version of the class file
129      * of this class.
130      */
131     int classFileVersion(Class<?> clazz);
132 
133     /**
134      * Set current thread's blocker field.
135      */
136     void blockedOn(Interruptible b);
137 
138     /**
139      * Registers a shutdown hook.
140      *
141      * It is expected that this method with registerShutdownInProgress=true
142      * is only used to register DeleteOnExitHook since the first file
143      * may be added to the delete on exit list by the application shutdown
144      * hooks.
145      *
146      * @param slot  the slot in the shutdown hook array, whose element
147      *              will be invoked in order during shutdown
148      * @param registerShutdownInProgress true to allow the hook
149      *        to be registered even if the shutdown is in progress.
150      * @param hook  the hook to be registered
151      *
152      * @throws IllegalStateException if shutdown is in progress and

107     byte[] getRawClassTypeAnnotations(Class<?> klass);
108 
109     /**
110      * Get the array of bytes that is the class-file representation
111      * of this Executable's type annotations.
112      */
113     byte[] getRawExecutableTypeAnnotations(Executable executable);
114 
115     /**
116      * Get the int value of the Class's class-file access flags.
117      */
118     int getClassFileAccessFlags(Class<?> klass);
119 
120     /**
121      * Returns the elements of an enum class or null if the
122      * Class object does not represent an enum type;
123      * the result is uncloned, cached, and shared by all callers.
124      */
125     <E extends Enum<E>> E[] getEnumConstantsShared(Class<E> klass);
126 






127     /**
128      * Set current thread's blocker field.
129      */
130     void blockedOn(Interruptible b);
131 
132     /**
133      * Registers a shutdown hook.
134      *
135      * It is expected that this method with registerShutdownInProgress=true
136      * is only used to register DeleteOnExitHook since the first file
137      * may be added to the delete on exit list by the application shutdown
138      * hooks.
139      *
140      * @param slot  the slot in the shutdown hook array, whose element
141      *              will be invoked in order during shutdown
142      * @param registerShutdownInProgress true to allow the hook
143      *        to be registered even if the shutdown is in progress.
144      * @param hook  the hook to be registered
145      *
146      * @throws IllegalStateException if shutdown is in progress and
< prev index next >