public static class TokenReplacedStream.Pattern
extends java.lang.Object
| Constructor and Description |
|---|
TokenReplacedStream.Pattern(java.lang.String s,
java.lang.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.
|
java.lang.String |
replace()
Gets the string to be replaced.
|
void |
reset()
Reset the cursor.
|
java.lang.String |
toString() |
public TokenReplacedStream.Pattern(java.lang.String s,
java.lang.String replace)
public int match(char c)
c - public void reset()
public boolean isMatched()
public java.lang.String replace()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.