net.sf.jmatchparser.util
Class PatternCache
java.lang.Object
net.sf.jmatchparser.util.PatternCache
public class PatternCache
- extends Object
A static cache for compiled regexp Pattern
s.
Method Summary |
static Pattern |
compile(String regex)
Lookup a regex in the cache, and compile it if it is not cached yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternCache
public PatternCache()
compile
public static Pattern compile(String regex)
- Lookup a regex in the cache, and compile it if it is not cached yet.
- Parameters:
regex
- The regular expression to compile / look up
- Returns:
- The compiled regular expression
Copyright © 2011. All Rights Reserved.