public class XtextTokenStream
extends org.antlr.runtime.CommonTokenStream
| Modifier and Type | Class and Description |
|---|---|
static interface |
XtextTokenStream.HiddenTokens |
| Constructor and Description |
|---|
XtextTokenStream() |
XtextTokenStream(org.antlr.runtime.TokenSource tokenSource,
int channel) |
XtextTokenStream(org.antlr.runtime.TokenSource tokenSource,
ITokenDefProvider tokenDefProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
basicConsume()
Make super-impl of
consume() accessible to subtypes. |
protected int |
basicMark()
Make super-impl of
mark() accessible to subtypes. |
protected void |
basicRewind(int marker)
Make super-impl of
CommonTokenStream.rewind() accessible to subtypes. |
void |
consume() |
protected void |
doSetHiddenTokens(java.lang.String... lexerRules) |
int |
getCurrentLookAhead() |
protected int |
getFirstMarker() |
java.lang.String |
getLexerErrorMessage(org.antlr.runtime.Token invalidToken) |
protected int |
getTokenIndex(org.antlr.runtime.Token tok) |
void |
initCurrentLookAhead(int currentLookAhead) |
int |
LA(int i) |
org.antlr.runtime.Token |
LT(int k)
Same as
CommonTokenStream.LT(int) except that we skip
hidden tokens even for k == 1 |
int |
mark() |
void |
rewind(int marker) |
XtextTokenStream.HiddenTokens |
setHiddenTokens(java.lang.String... lexerRules) |
void |
setInitialHiddenTokens(java.lang.String... lexerRules) |
protected void |
skipHiddenTokens() |
java.lang.String |
toString(int start,
int stop) |
discardOffChannelTokens, discardTokenType, fillBuffer, get, getSourceName, getTokens, getTokens, getTokens, getTokens, getTokens, getTokenSource, index, LB, release, reset, rewind, seek, setTokenSource, setTokenTypeChannel, size, skipOffTokenChannels, skipOffTokenChannelsReverse, toString, toStringpublic XtextTokenStream()
public XtextTokenStream(org.antlr.runtime.TokenSource tokenSource,
int channel)
public XtextTokenStream(org.antlr.runtime.TokenSource tokenSource,
ITokenDefProvider tokenDefProvider)
public java.lang.String toString(int start,
int stop)
toString in interface org.antlr.runtime.TokenStreamtoString in class org.antlr.runtime.CommonTokenStreampublic XtextTokenStream.HiddenTokens setHiddenTokens(java.lang.String... lexerRules)
public void setInitialHiddenTokens(java.lang.String... lexerRules)
protected void doSetHiddenTokens(java.lang.String... lexerRules)
protected void skipHiddenTokens()
public int LA(int i)
LA in interface org.antlr.runtime.IntStreamLA in class org.antlr.runtime.CommonTokenStreamprotected int getTokenIndex(org.antlr.runtime.Token tok)
public void consume()
consume in interface org.antlr.runtime.IntStreamconsume in class org.antlr.runtime.CommonTokenStreamprotected void basicConsume()
consume() accessible to subtypes.protected int getFirstMarker()
public int mark()
mark in interface org.antlr.runtime.IntStreammark in class org.antlr.runtime.CommonTokenStreamprotected int basicMark()
mark() accessible to subtypes.public void rewind(int marker)
rewind in interface org.antlr.runtime.IntStreamrewind in class org.antlr.runtime.CommonTokenStreamprotected void basicRewind(int marker)
CommonTokenStream.rewind() accessible to subtypes.public org.antlr.runtime.Token LT(int k)
CommonTokenStream.LT(int) except that we skip
hidden tokens even for k == 1.LT in interface org.antlr.runtime.TokenStreamLT in class org.antlr.runtime.CommonTokenStreampublic int getCurrentLookAhead()
public void initCurrentLookAhead(int currentLookAhead)
public java.lang.String getLexerErrorMessage(org.antlr.runtime.Token invalidToken)