|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MatcherIface
Interface for regexp matcher class.
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
Company:
Nested Class Summary | |
---|---|
static class |
MatcherIface.State
State of matcher. |
Method Summary | |
---|---|
void |
feed(int c)
Appends character to matched string snd updates stato of this matcher. |
int |
getMatchingLength()
Returns length of input subsequence that matches pattern. |
java.lang.String |
getPattern()
Returns pattern associated with this matcher. |
MatcherIface.State |
getState()
Returns state of matcher. |
Token |
getToken()
Returns token that would be produced by this class. |
MatcherIface.State |
matches(java.lang.StringBuilder text)
Resets this matcher with given string. |
void |
reset()
Resets matcher. |
Method Detail |
---|
void feed(int c)
c
- chracter to be appendedMatcherIface.State matches(java.lang.StringBuilder text)
void reset()
Token getToken()
int getMatchingLength()
MatcherIface.State.PARTIAL
and MatcherIface.State.OVERFEED
.
MatcherIface.State getState()
java.lang.String getPattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |