01: package org.codehaus.groovy.runtime;
02:
03: import java.util.regex.Matcher;
04:
05: /**
06: * Created by IntelliJ IDEA.
07: * User: sam
08: * Date: May 17, 2004
09: * Time: 9:04:28 PM
10: * To change this template use File | Settings | File Templates.
11: */
12: public class RegexSupport {
13:
14: private static ThreadLocal currentMatcher = new ThreadLocal();
15:
16: public static Matcher getLastMatcher() {
17: return (Matcher) currentMatcher.get();
18: }
19:
20: public static void setLastMatcher(Matcher matcher) {
21: currentMatcher.set(matcher);
22: }
23: }
|