public abstract class Matcher extends Object
| Constructor and Description |
|---|
Matcher() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
contains()
Test if a regular expression matches parts of the input
|
static Matcher |
create(String input,
Pattern pattern)
Create a new matcher object, depending on the implementation
|
abstract boolean |
matches()
Test if a regular expression matches the complete input
|
abstract String |
substitute(String substitution)
Replace all matches in the input with a string substitution.
|
abstract String |
substitute(Substitution substitution)
Replace all matches in the input with a substitution.
|
public static Matcher create(String input, Pattern pattern)
input - Input to match regular expressions againspattern - Regular expression patternpublic abstract String substitute(Substitution substitution)
substitution - Code which handles every substitutionpublic abstract String substitute(String substitution)
substitution - String to replace all matchespublic abstract boolean matches()
public abstract boolean contains()
Copyright © 2003–2018 Sakai Project. All rights reserved.