|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.parcinj.AbstractSymbol<P>
net.sf.parcinj.ZeroOrMore<P>
public class ZeroOrMore<P extends Processor>
Wraps a symbol which will be executed zero or more times.
| Constructor Summary | |
|---|---|
ZeroOrMore(Symbol<P> symbol)
Creates an instance for the specified symbol. |
|
| Method Summary | |
|---|---|
protected void |
doProcess(TokenIterator iterator,
P processor)
Processes the specified iterator as long as the wrapped symbol matches. |
MatchingResult |
matches(Token token)
Returns MatchingResult.OK. |
| Methods inherited from class net.sf.parcinj.AbstractSymbol |
|---|
followedBy, oneOrMoreTimes, optional, or, process, zeroOrMoreTimes, zeroOrMoreTimesSeparatedBy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZeroOrMore(Symbol<P> symbol)
| Method Detail |
|---|
public MatchingResult matches(Token token)
MatchingResult.OK.
token - Token to be checked. Will be null if beyond last
token.
protected final void doProcess(TokenIterator iterator,
P processor)
throws ParsingException
doProcess in class AbstractSymbol<P extends Processor>processor - Processor who does the actual processing.
ParsingException - if a parsing error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||