| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static File | |
| public static File | |
| public static File | |
| private static File | |
| private static Thread | |
| public static long | Returns: the difference, measured in seconds, between the current time and midnight, January 1, 1970 UTC.placeholder variable used by Groovy categories; ignored for default static methods self)Get the current time in seconds |
| public static String | |
| public static ResourceBundle | Returns: the resource bundleplaceholder variable used by Groovy categories; ignored for default static methods self, String the name of the bundle. bundleName)Works exactly like ResourceBundle.getBundle(String). |
| public static ResourceBundle | Returns: the resource bundleplaceholder variable used by Groovy categories; ignored for default static methods self, String the name of the bundle. bundleName, Locale the specific locale locale)Works exactly like ResourceBundle.getBundle(String, Locale). |
| public static Matcher | Returns: the last regex matcherplaceholder variable used by Groovy categories; ignored for default static methods self)Get the last hidden matcher that the system used to do a match. |
| public static Date | |
| public static Date | |
| public static Date | |
| public static void | |
| public static void | sleep(Object
placeholder variable used by Groovy categories; ignored for default static methods self, long the number of milliseconds to sleep milliseconds, Closure<V> interrupt handler, InterruptedException is passed to the Closure
as long as it returns false, the sleep continues onInterrupt)Sleep for so many milliseconds, using a given closure for interrupt processing. |
| private static void | |
| public static Thread | |
| public static Thread | |
| public static Thread | Returns: the started threadplaceholder variable used by Groovy categories; ignored for default static methods self, Closure<V> the Runnable closure closure)Start a daemon Thread with the given closure as a Runnable instance. |
| public static Thread | Returns: the started threadplaceholder variable used by Groovy categories; ignored for default static methods self, String the name to give the thread name, Closure<V> the Runnable closure closure)Start a daemon Thread with a given name and the given closure as a Runnable instance. |
| DefaultGroovyStaticMethods | back to summary |
|---|---|
| public DefaultGroovyStaticMethods() | |
| createTempDir | back to summary |
|---|---|
| public static File createTempDir(File self) throws IOException | |
| createTempDir | back to summary |
|---|---|
| public static File createTempDir(File self, final String prefix) throws IOException | |
| createTempDir | back to summary |
|---|---|
| public static File createTempDir(File self, final String prefix, final String suffix) throws IOException | |
| createTempDirNio | back to summary |
|---|---|
| private static File createTempDirNio(String prefix) throws IOException | |
| createThread | back to summary |
|---|---|
| private static Thread createThread(String name, boolean daemon, Closure<V> closure) | |
| currentTimeSeconds | back to summary |
|---|---|
| public static long currentTimeSeconds(System self) Get the current time in seconds
| |
| dumpAll | back to summary |
|---|---|
| public static String dumpAll(Thread self) Dump the thread dump of all threads | |
| getBundle | back to summary |
|---|---|
| public static ResourceBundle getBundle(ResourceBundle self, String bundleName) Works exactly like ResourceBundle.getBundle(String). This is needed because the java method depends on a particular stack configuration that is not guaranteed in Groovy when calling the Java method.
| |
| getBundle | back to summary |
|---|---|
| public static ResourceBundle getBundle(ResourceBundle self, String bundleName, Locale locale) Works exactly like ResourceBundle.getBundle(String, Locale). This is needed because the java method depends on a particular stack configuration that is not guaranteed in Groovy when calling the Java method.
| |
| getLastMatcher | back to summary |
|---|---|
| public static Matcher getLastMatcher(Matcher self) Get the last hidden matcher that the system used to do a match. | |
| parse | back to summary |
|---|---|
| public static Date parse(Date self, String format, String input) throws ParseException
Deprecated
| |
| parse | back to summary |
|---|---|
| public static Date parse(Date self, String format, String input, TimeZone zone) throws ParseException
Deprecated
| |
| parseToStringDate | back to summary |
|---|---|
| public static Date parseToStringDate(Date self, String dateToString) throws ParseException
Deprecated
| |
| sleep | back to summary |
|---|---|
| public static void sleep(Object self, long milliseconds) Sleep for so many milliseconds, even if interrupted.
| |
| sleep | back to summary |
|---|---|
| public static void sleep(Object self, long milliseconds, Closure<V> onInterrupt) Sleep for so many milliseconds, using a given closure for interrupt processing.
| |
| sleepImpl | back to summary |
|---|---|
| private static void sleepImpl(long millis, Closure<V> closure) This method is used by both sleep() methods to implement sleeping for the given time even if interrupted
| |
| start | back to summary |
|---|---|
| public static Thread start(Thread self, Closure<V> closure) Start a Thread with the given closure as a Runnable instance. | |
| start | back to summary |
|---|---|
| public static Thread start(Thread self, String name, Closure<V> closure) Start a Thread with a given name and the given closure as a Runnable instance. | |
| startDaemon | back to summary |
|---|---|
| public static Thread startDaemon(Thread self, Closure<V> closure) Start a daemon Thread with the given closure as a Runnable instance. | |
| startDaemon | back to summary |
|---|---|
| public static Thread startDaemon(Thread self, String name, Closure<V> closure) Start a daemon Thread with a given name and the given closure as a Runnable instance. | |