1 35 package org.codehaus.groovy.runtime; 36 37 import groovy.lang.Closure; 38 39 import java.util.regex.Matcher ; 40 41 49 public class DefaultGroovyStaticMethods { 50 51 57 public static Thread start(Thread self, Closure closure) { 58 Thread thread = new Thread (closure); 59 thread.start(); 60 return thread; 61 } 62 63 69 public static Thread startDaemon(Thread self, Closure closure) { 70 Thread thread = new Thread (closure); 71 thread.setDaemon(true); 72 thread.start(); 73 return thread; 74 } 75 76 82 public static Matcher getLastMatcher(Matcher matcher) { 83 return RegexSupport.getLastMatcher(); 84 } 85 } 86 | Popular Tags |