protected abstract class NonTerminalConsumer.ElementConsumer<Element extends AbstractElement> extends java.lang.Object implements IElementConsumer, IParsedTokenSource
Modifier | Constructor and Description |
---|---|
protected |
NonTerminalConsumer.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 NonTerminalConsumer.ElementConsumer(Element element)
public int consume() throws java.lang.Exception
IElementConsumer
consume
in interface IElementConsumer
java.lang.Exception
public int parseAgain(ParsedToken token) throws java.lang.Exception
parseAgain
in interface IParsedTokenSource
java.lang.Exception
protected abstract int doConsume(boolean optional) throws java.lang.Exception
java.lang.Exception
protected final Element getElement()
protected java.lang.String getErrorMessage()