public class TypesLexer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TypesLexer.ErrorReporter |
static class |
TypesLexer.Span |
static interface |
TypesLexer.Tokens |
| Modifier and Type | Field and Description |
|---|---|
static int |
TOKEN_SIZE |
| Constructor and Description |
|---|
TypesLexer(Reader stream,
TypesLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
advance() |
protected boolean |
createIdentifierToken(TypesLexer.Span token,
int ruleIndex) |
protected boolean |
createToken(TypesLexer.Span token,
int ruleIndex) |
int |
getLine() |
int |
getOffset() |
int |
getState() |
int |
getTokenLine() |
TypesLexer.Span |
next() |
void |
reset(Reader stream) |
void |
setLine(int currLine) |
void |
setOffset(int currOffset) |
void |
setState(int state) |
int |
tokenSize() |
String |
tokenText() |
public static final int TOKEN_SIZE
public TypesLexer(Reader stream, TypesLexer.ErrorReporter reporter) throws IOException
IOExceptionpublic void reset(Reader stream) throws IOException
IOExceptionprotected void advance()
throws IOException
IOExceptionpublic int getState()
public void setState(int state)
public int getTokenLine()
public int getLine()
public void setLine(int currLine)
public int getOffset()
public void setOffset(int currOffset)
public String tokenText()
public int tokenSize()
public TypesLexer.Span next() throws IOException
IOExceptionprotected boolean createToken(TypesLexer.Span token, int ruleIndex) throws IOException
IOExceptionprotected boolean createIdentifierToken(TypesLexer.Span token, int ruleIndex)
Copyright © 2014. All rights reserved.