| java.lang.Object org.codehaus.groovy.runtime.DefaultGroovyStaticMethods
DefaultGroovyStaticMethods | public class DefaultGroovyStaticMethods (Code) | | This class defines all the new static groovy methods which appear on normal JDK
classes inside the Groovy environment. Static methods are used with the
first parameter as the destination class.
author: Guillaume Laforge author: Dierk Koenig version: $Revision: 2726 $ |
getLastMatcher | public static Matcher getLastMatcher(Matcher matcher)(Code) | | Get the last hidden matcher that system used to do a match.
Parameters: matcher - the last regex matcher |
sleep | public static void sleep(Object object, long milliseconds)(Code) | | Sleep for so many milliseconds, even if interrupted.
Parameters: object - receiver Parameters: milliseconds - the number of milliseconds to sleep |
sleep | public static void sleep(Object object, long milliseconds, Closure onInterrupt)(Code) | | Sleep for so many milliseconds
Parameters: object - receiver Parameters: milliseconds - the number of milliseconds to sleep Parameters: onInterrupt - interrupt handler, InterruptedException is passed to the Closure |
sleepImpl | protected static void sleepImpl(Object object, long millis)(Code) | | |
start | public static Thread start(Thread self, Closure closure)(Code) | | Start a Thread with the given closure as a Runnable instance.
Parameters: closure - the Runnable closure the started thread |
startDaemon | public static Thread startDaemon(Thread self, Closure closure)(Code) | | Start a daemon Thread with the given closure as a Runnable instance.
Parameters: closure - the Runnable closure the started thread |
|
|