public final class RegexLexer extends Object
| Constructor and Description |
|---|
RegexLexer(RegexSource source,
RegexFlags flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastTokenPosition()
Returns the last token's position in the pattern string.
|
Map<String,Integer> |
getNamedCaptureGroups() |
boolean |
hasNext() |
Token |
next() |
int |
numberOfCaptureGroups() |
public RegexLexer(RegexSource source, RegexFlags flags)
public boolean hasNext()
public Token next() throws RegexSyntaxException
RegexSyntaxExceptionpublic int getLastTokenPosition()
public int numberOfCaptureGroups()
throws RegexSyntaxException
RegexSyntaxExceptionpublic Map<String,Integer> getNamedCaptureGroups() throws RegexSyntaxException
RegexSyntaxException