74 byte[] getRawExecutableTypeAnnotations(Executable executable); 75 76 /** 77 * Returns the elements of an enum class or null if the 78 * Class object does not represent an enum type; 79 * the result is uncloned, cached, and shared by all callers. 80 */ 81 <E extends Enum<E>> E[] getEnumConstantsShared(Class<E> klass); 82 83 /** Set thread's blocker field. */ 84 void blockedOn(Thread t, Interruptible b); 85 86 /** 87 * Registers a shutdown hook. 88 * 89 * It is expected that this method with registerShutdownInProgress=true 90 * is only used to register DeleteOnExitHook since the first file 91 * may be added to the delete on exit list by the application shutdown 92 * hooks. 93 * 94 * @params slot the slot in the shutdown hook array, whose element 95 * will be invoked in order during shutdown 96 * @params registerShutdownInProgress true to allow the hook 97 * to be registered even if the shutdown is in progress. 98 * @params hook the hook to be registered 99 * 100 * @throw IllegalStateException if shutdown is in progress and 101 * the slot is not valid to register. 102 */ 103 void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook); 104 105 /** 106 * Returns the number of stack frames represented by the given throwable. 107 */ 108 int getStackTraceDepth(Throwable t); 109 110 /** 111 * Returns the ith StackTraceElement for the given throwable. 112 */ 113 StackTraceElement getStackTraceElement(Throwable t, int i); 114 115 /** 116 * Returns a new string backed by the provided character array. The 117 * character array is not copied and must never be modified after the 118 * String is created, in order to fulfill String's contract. 119 * 120 * @param chars the character array to back the string | 74 byte[] getRawExecutableTypeAnnotations(Executable executable); 75 76 /** 77 * Returns the elements of an enum class or null if the 78 * Class object does not represent an enum type; 79 * the result is uncloned, cached, and shared by all callers. 80 */ 81 <E extends Enum<E>> E[] getEnumConstantsShared(Class<E> klass); 82 83 /** Set thread's blocker field. */ 84 void blockedOn(Thread t, Interruptible b); 85 86 /** 87 * Registers a shutdown hook. 88 * 89 * It is expected that this method with registerShutdownInProgress=true 90 * is only used to register DeleteOnExitHook since the first file 91 * may be added to the delete on exit list by the application shutdown 92 * hooks. 93 * 94 * @param slot the slot in the shutdown hook array, whose element 95 * will be invoked in order during shutdown 96 * @param registerShutdownInProgress true to allow the hook 97 * to be registered even if the shutdown is in progress. 98 * @param hook the hook to be registered 99 * 100 * @throws IllegalStateException if shutdown is in progress and 101 * the slot is not valid to register. 102 */ 103 void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook); 104 105 /** 106 * Returns the number of stack frames represented by the given throwable. 107 */ 108 int getStackTraceDepth(Throwable t); 109 110 /** 111 * Returns the ith StackTraceElement for the given throwable. 112 */ 113 StackTraceElement getStackTraceElement(Throwable t, int i); 114 115 /** 116 * Returns a new string backed by the provided character array. The 117 * character array is not copied and must never be modified after the 118 * String is created, in order to fulfill String's contract. 119 * 120 * @param chars the character array to back the string |