public static class TokenReplacedStream.Pattern extends Object
Constructor and Description |
---|
TokenReplacedStream.Pattern(String s,
String replace)
Construct a pattern and its replacement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMatched()
Is this pattern matched fully?
A pattern is fully matched when the matching length is equal to the length of the pattern string.
|
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–2017 Apache Software Foundation. All rights reserved.