|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.DefaultGroovyStaticMethods
class DefaultGroovyStaticMethods extends Object
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 ResourceBundle
|
getBundle(ResourceBundle self, String bundleName)
Works exactly like ResourceBundle.getBundle(String). |
static ResourceBundle
|
getBundle(ResourceBundle self, String bundleName, Locale locale)
Works exactly like ResourceBundle.getBundle(String, Locale). |
static Matcher
|
getLastMatcher(Matcher self)
Get the last hidden matcher that the system used to do a match. |
static Date
|
parse(Date self, String format, String input)
Parse a String into a Date instance using the given pattern. |
static void
|
sleep(Object self, long milliseconds)
Sleep for so many milliseconds, even if interrupted. |
static void
|
sleep(Object self, long milliseconds, Closure onInterrupt)
Sleep for so many milliseconds, using a given closure for interrupt processing. |
static Thread
|
start(Thread self, Closure closure)
Start a Thread with the given closure as a Runnable instance. |
static Thread
|
start(Thread self, String name, Closure closure)
Start a Thread with a given name and 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. |
static Thread
|
startDaemon(Thread self, String name, Closure closure)
Start a daemon Thread with a given name and the given closure as a Runnable instance. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
DefaultGroovyStaticMethods()
Method Detail |
---|
public static ResourceBundle getBundle(ResourceBundle self, String bundleName)
public static ResourceBundle getBundle(ResourceBundle self, String bundleName, Locale locale)
public static Matcher getLastMatcher(Matcher self)
public static Date parse(Date self, String format, String input)
Note that a new SimpleDateFormat instance is created for every invocation of this method (for thread safety).
public static void sleep(Object self, long milliseconds)
public static void sleep(Object self, long milliseconds, Closure onInterrupt)
public static Thread start(Thread self, Closure closure)
public static Thread start(Thread self, String name, Closure closure)
public static Thread startDaemon(Thread self, Closure closure)
public static Thread startDaemon(Thread self, String name, Closure closure)
Copyright © 2003-2009 The Codehaus. All rights reserved.