public class RegexDefLexer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RegexDefLexer.ErrorReporter |
static class |
RegexDefLexer.Span |
static interface |
RegexDefLexer.States |
static interface |
RegexDefLexer.Tokens |
| Modifier and Type | Field and Description |
|---|---|
static int |
TOKEN_SIZE |
| Constructor and Description |
|---|
RegexDefLexer(CharSequence input,
RegexDefLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
advance() |
protected int |
charAt(int i) |
protected boolean |
createExpandToken(RegexDefLexer.Span token,
int ruleIndex) |
protected boolean |
createToken(RegexDefLexer.Span token,
int ruleIndex) |
int |
getLine() |
int |
getOffset() |
int |
getState() |
int |
getTokenLine() |
RegexDefLexer.Span |
next() |
void |
reset(CharSequence input) |
void |
setLine(int currLine) |
void |
setOffset(int currOffset) |
void |
setState(int state) |
int |
tokenSize() |
String |
tokenText() |
public static final int TOKEN_SIZE
public RegexDefLexer(CharSequence input, RegexDefLexer.ErrorReporter reporter) throws IOException
IOExceptionpublic void reset(CharSequence input) throws IOException
IOExceptionprotected void advance()
public 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 RegexDefLexer.Span next() throws IOException
IOExceptionprotected int charAt(int i)
protected boolean createToken(RegexDefLexer.Span token, int ruleIndex) throws IOException
IOExceptionprotected boolean createExpandToken(RegexDefLexer.Span token, int ruleIndex)
Copyright © 2014. All rights reserved.