|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
RegexSupport.java | - | 0% | 0% | 0% |
|
1 |
package org.codehaus.groovy.runtime;
|
|
2 |
|
|
3 |
import java.util.regex.Matcher;
|
|
4 |
|
|
5 |
/**
|
|
6 |
* Created by IntelliJ IDEA.
|
|
7 |
* User: sam
|
|
8 |
* Date: May 17, 2004
|
|
9 |
* 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 | 0 |
public static Matcher getLastMatcher() { |
17 | 0 |
return (Matcher) currentMatcher.get();
|
18 |
} |
|
19 |
|
|
20 | 0 |
public static void setLastMatcher(Matcher matcher) { |
21 | 0 |
currentMatcher.set(matcher); |
22 |
} |
|
23 |
} |
|
24 |
|
|