|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.parser.antlr.TokenAcceptor
public class TokenAcceptor
Simple implementation of an ITokenAcceptor based on the assumption that the calls to accept and next will be alternating with only a few exceptions.
Constructor Summary | |
---|---|
TokenAcceptor()
|
Method Summary | |
---|---|
void |
accept(org.antlr.runtime.Token token)
|
boolean |
hasNext()
|
org.antlr.runtime.Token |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenAcceptor()
Method Detail |
---|
public void accept(org.antlr.runtime.Token token)
accept
in interface ITokenAcceptor
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.antlr.runtime.Token>
public org.antlr.runtime.Token next()
next
in interface java.util.Iterator<org.antlr.runtime.Token>
public void remove()
remove
in interface java.util.Iterator<org.antlr.runtime.Token>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |