org.radeox.regex
Class JdkMatcher

java.lang.Object
  extended byorg.radeox.regex.Matcher
      extended byorg.radeox.regex.JdkMatcher

public class JdkMatcher
extends Matcher


Constructor Summary
JdkMatcher(java.lang.String input, Pattern pattern)
           
 
Method Summary
 boolean contains()
          Test if a regular expression matches parts of the input
protected  java.util.regex.Matcher getMatcher()
           
 boolean matches()
          Test if a regular expression matches the complete input
 java.lang.String substitute(java.lang.String substitution)
          Replace all matches in the input with a string substitution.
 java.lang.String substitute(Substitution substitution)
          Replace all matches in the input with a substitution.
 
Methods inherited from class org.radeox.regex.Matcher
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkMatcher

public JdkMatcher(java.lang.String input,
                  Pattern pattern)
Method Detail

substitute

public java.lang.String substitute(Substitution substitution)
Description copied from class: Matcher
Replace all matches in the input with a substitution. For every match substition.handleMatch is called.

Specified by:
substitute in class Matcher
Parameters:
substitution - Code which handles every substitution
Returns:
String with all matches substituted

substitute

public java.lang.String substitute(java.lang.String substitution)
Description copied from class: Matcher
Replace all matches in the input with a string substitution.

Specified by:
substitute in class Matcher
Parameters:
substitution - String to replace all matches
Returns:
String with all matches substituted

getMatcher

protected java.util.regex.Matcher getMatcher()

contains

public boolean contains()
Description copied from class: Matcher
Test if a regular expression matches parts of the input

Specified by:
contains in class Matcher
Returns:
True if the regex matches a part of the input

matches

public boolean matches()
Description copied from class: Matcher
Test if a regular expression matches the complete input

Specified by:
matches in class Matcher
Returns:
True if the regex matches the complete input


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.