|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Constructor Summary | |
DefaultGroovyStaticMethods()
|
Method Summary | |
---|---|
static Matcher |
getLastMatcher(Matcher matcher)
Get the last hidden matcher that system used to do a match. |
static void |
sleep(Object object, long milliseconds)
Sleep for so many milliseconds, even if interrupted. |
static void |
sleep(Object object, long milliseconds, Closure onInterrupt)
Sleep for so many milliseconds as long as it returns false, the sleep continues |
static void |
sleepImpl(Object object, long millis, Closure closure)
This method is used by both sleep() methods to imlement sleeping for the given time even if interrupted as long as the closure returns false the sleep continues |
static Thread |
start(Thread self, Closure closure)
Start a Thread with the given closure as a Runnable instance. |
static Thread |
startDaemon(Thread self, Closure closure)
Start a daemon Thread with the given closure as a Runnable instance. |
Constructor Detail |
---|
DefaultGroovyStaticMethods()
Method Detail |
---|
public static Matcher getLastMatcher(Matcher matcher)
public static void sleep(Object object, long milliseconds)
public static void sleep(Object object, long milliseconds, Closure onInterrupt)
static void sleepImpl(Object object, long millis, Closure closure)
public static Thread start(Thread self, Closure closure)
public static Thread startDaemon(Thread self, Closure closure)