|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.tools.tokenizer.regexp.JavaRegExp
JavaRegExp
implements the RegExp
interface for
regular expressions of the java.util.regex package.
Constructor Summary | |
JavaRegExp(java.lang.String regExpString)
This creates a new instance of JavaRegExp for a
String containing a regular expression. |
Method Summary | |
Match |
contains(java.lang.String input)
This checks if the input contains a match for the regular expression. |
java.util.List |
getAllMatches(java.lang.String input)
This returns an array of all Match es for the regular
expression in input . |
boolean |
matches(java.lang.String input)
This checks if the regular expression matches the input in its entirety. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaRegExp(java.lang.String regExpString) throws InitializationException
JavaRegExp
for a
String
containing a regular expression.
regExpString
- a String
with a regular expression
InitializationException
- if regular expression is not
well formedMethod Detail |
public java.util.List getAllMatches(java.lang.String input)
Match
es for the regular
expression in input
.
getAllMatches
in interface RegExp
input
- the String
where to look for matches
List
of Match
espublic boolean matches(java.lang.String input)
matches
in interface RegExp
input
- the String
to check
boolean
public Match contains(java.lang.String input)
Match
is returned,
null
otherwise.
contains
in interface RegExp
input
- the String
to check
Match
or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |