protected abstract class NonTerminalConsumer.ElementConsumer<Element extends AbstractElement> extends java.lang.Object implements IElementConsumer, IParsedTokenSource
| Modifier | Constructor and Description |
|---|---|
protected |
ElementConsumer(Element element) |
| Modifier and Type | Method and Description |
|---|---|
int |
consume()
Scan the configured input source for a consumable element at the current offset.
|
protected abstract int |
doConsume(boolean optional) |
protected Element |
getElement() |
protected java.lang.String |
getErrorMessage() |
int |
parseAgain(ParsedToken token) |
protected ElementConsumer(Element element)
public int consume()
throws java.lang.Exception
IElementConsumerconsume in interface IElementConsumerjava.lang.Exceptionpublic int parseAgain(ParsedToken token) throws java.lang.Exception
parseAgain in interface IParsedTokenSourcejava.lang.Exceptionprotected abstract int doConsume(boolean optional)
throws java.lang.Exception
java.lang.Exceptionprotected final Element getElement()
protected java.lang.String getErrorMessage()