public static class TokenReplacedStream.Pattern extends Object
Constructor and Description |
---|
Pattern(String s,
String replace)
Construct a pattern and its replacement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMatched()
Is this pattern matched fully?
|
int |
match(char c)
Match the given character with the current cursor and advance the matching length.
|
String |
replace()
Gets the string to be replaced.
|
void |
reset()
Reset the cursor.
|
String |
toString() |
public int match(char c)
c
- public void reset()
public boolean isMatched()
public String replace()
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.