|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.DefaultGroovyStaticMethods
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 seconds)
Sleep for so many seconds, even if interrupted. |
static void |
sleep(Object object,
long seconds,
Closure onInterrupt)
Sleep for so many seconds |
protected static void |
sleepImpl(Object object,
long millis)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultGroovyStaticMethods()
Method Detail |
public static Thread start(Thread self, Closure closure)
closure
- the Runnable closure
public static Thread startDaemon(Thread self, Closure closure)
closure
- the Runnable closure
public static Matcher getLastMatcher(Matcher matcher)
matcher
-
public static void sleep(Object object, long seconds)
object
- receiverseconds
- the number of seconds to sleepprotected static void sleepImpl(Object object, long millis)
public static void sleep(Object object, long seconds, Closure onInterrupt)
object
- receiverseconds
- the number of seconds to sleeponInterrupt
- interrupt handler, InterruptedException is passed to the Closure
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |