net.sf.jmatchparser.util
Class PatternCache

java.lang.Object
  extended by net.sf.jmatchparser.util.PatternCache

public class PatternCache
extends Object

A static cache for compiled regexp Patterns.


Constructor Summary
PatternCache()
           
 
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
 

Constructor Detail

PatternCache

public PatternCache()
Method Detail

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.