org.codehaus.groovy.runtime
Class DefaultGroovyStaticMethods

java.lang.Object
  extended byorg.codehaus.groovy.runtime.DefaultGroovyStaticMethods

public class DefaultGroovyStaticMethods
extends java.lang.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.

Version:
$Revision: 1.3 $
Author:
Guillaume Laforge

Constructor Summary
DefaultGroovyStaticMethods()
           
 
Method Summary
static java.util.regex.Matcher getLastMatcher(java.util.regex.Matcher matcher)
          Get the last hidden matcher that system used to do a match.
static java.lang.Thread start(java.lang.Thread self, Closure closure)
          Start a Thread with the given closure as a Runnable instance.
static java.lang.Thread startDaemon(java.lang.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

DefaultGroovyStaticMethods

public DefaultGroovyStaticMethods()
Method Detail

start

public static java.lang.Thread start(java.lang.Thread self,
                                     Closure closure)
Start a Thread with the given closure as a Runnable instance.

Parameters:
closure - the Runnable closure
Returns:
the started thread

startDaemon

public static java.lang.Thread startDaemon(java.lang.Thread self,
                                           Closure closure)
Start a daemon Thread with the given closure as a Runnable instance.

Parameters:
closure - the Runnable closure
Returns:
the started thread

getLastMatcher

public static java.util.regex.Matcher getLastMatcher(java.util.regex.Matcher matcher)
Get the last hidden matcher that system used to do a match.

Parameters:
matcher -
Returns:


Copyright © 2003-2005 The Codehaus. All Rights Reserved.