org.apache.tapestry.util
Class RegexpMatcher

java.lang.Object
  |
  +--org.apache.tapestry.util.RegexpMatcher

public class RegexpMatcher
extends Object

Streamlines the interface to ORO by implicitly constructing the necessary compilers and matchers, and by caching compiled patterns.

Since:
3.0
Version:
$Id: RegexpMatcher.java,v 1.2 2003/04/17 21:33:50 hlship Exp $
Author:
Howard Lewis Ship

Constructor Summary
RegexpMatcher()
           
 
Method Summary
 void clear()
          Clears any previously compiled patterns.
protected  Pattern compilePattern(String pattern)
           
protected  Pattern getCompiledPattern(String pattern)
           
 boolean matches(String pattern, String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpMatcher

public RegexpMatcher()
Method Detail

compilePattern

protected Pattern compilePattern(String pattern)

getCompiledPattern

protected Pattern getCompiledPattern(String pattern)

clear

public void clear()
Clears any previously compiled patterns.

matches

public boolean matches(String pattern,
                       String input)