Package org.eclipse.xtend.core.parser
Interface InternalFlexer
-
public interface InternalFlexer
Public interface of JFlex based lexers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
advance()
Consume the next token and return its type.int
getTokenLength()
The length of the previously consumed token.java.lang.String
getTokenText()
The text of the previously consumed token.void
yyreset(java.io.Reader reader)
Allows to reuse the current lexer.
-
-
-
Method Detail
-
advance
int advance() throws java.io.IOException
Consume the next token and return its type. Length and text are available viagetTokenLength()
andgetTokenText()
afterwards. EOF is indicated by the value-1
.- Throws:
java.io.IOException
-
getTokenLength
int getTokenLength()
The length of the previously consumed token.
-
getTokenText
java.lang.String getTokenText()
The text of the previously consumed token.
-
yyreset
void yyreset(java.io.Reader reader)
Allows to reuse the current lexer.
-
-