|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.jest.TokenReplacedStream.Pattern
public static class TokenReplacedStream.Pattern
| Constructor Summary | |
|---|---|
TokenReplacedStream.Pattern(String s,
String replace)
Construct a pattern and its replacement. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TokenReplacedStream.Pattern(String s,
String replace)
| Method Detail |
|---|
public int match(char c)
c -
public void reset()
public boolean isMatched()
public String replace()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||