de.dfki.lt.tools.tokenizer.regexp
Interface RegExp

All Known Implementing Classes:
JavaRegExp

public interface RegExp

RegExp defines an interface for regular expression patterns.

Version:
$Id: RegExp.java,v 1.4 2005/04/12 08:47:37 steffen Exp $
Author:
Joerg Steffen, DFKI

Method Summary
 Match contains(java.lang.String input)
          This specifies a method signature that checks if the input contains a match for the regular expression.
 java.util.List getAllMatches(java.lang.String input)
          This specifies a method signature that returns a List with all Matches for the regular expression in input.
 boolean matches(java.lang.String input)
          This specifies a method signature that checks if the regular expression matches the input in its entirety.
 

Method Detail

getAllMatches

public java.util.List getAllMatches(java.lang.String input)
This specifies a method signature that returns a List with all Matches for the regular expression in input.

Parameters:
input - the String where to look for matches
Returns:
a List of Matches

matches

public boolean matches(java.lang.String input)
This specifies a method signature that checks if the regular expression matches the input in its entirety.

Parameters:
input - the String to check
Returns:
a boolean

contains

public Match contains(java.lang.String input)
This specifies a method signature that checks if the input contains a match for the regular expression. If yes, a Match is returned, null otherwise.

Parameters:
input - the String to check
Returns:
a Match or null