Package org.radeox.regex
Class JdkMatcher
- java.lang.Object
-
- org.radeox.regex.Matcher
-
- org.radeox.regex.JdkMatcher
-
public class JdkMatcher extends Matcher
-
-
Constructor Summary
Constructors Constructor Description JdkMatcher(String input, Pattern pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains()Test if a regular expression matches parts of the inputprotected MatchergetMatcher()booleanmatches()Test if a regular expression matches the complete inputStringsubstitute(String substitution)Replace all matches in the input with a string substitution.Stringsubstitute(Substitution substitution)Replace all matches in the input with a substitution.
-
-
-
Method Detail
-
substitute
public String substitute(Substitution substitution)
Description copied from class:MatcherReplace all matches in the input with a substitution. For every match substition.handleMatch is called.- Specified by:
substitutein classMatcher- Parameters:
substitution- Code which handles every substitution- Returns:
- String with all matches substituted
-
substitute
public String substitute(String substitution)
Description copied from class:MatcherReplace all matches in the input with a string substitution.- Specified by:
substitutein classMatcher- Parameters:
substitution- String to replace all matches- Returns:
- String with all matches substituted
-
getMatcher
protected Matcher getMatcher()
-
contains
public boolean contains()
Description copied from class:MatcherTest if a regular expression matches parts of the input
-
-