Package org.intellij.jflex.parser
Class _JFlexLexer
- java.lang.Object
-
- org.intellij.jflex.parser._JFlexLexer
-
- All Implemented Interfaces:
com.intellij.lexer.FlexLexer
public class _JFlexLexer extends java.lang.Object implements com.intellij.lexer.FlexLexerThis class is a scanner generated by JFlex 1.7.0-SNAPSHOT from the specification file _JFlexLexer.flex
-
-
Field Summary
Fields Modifier and Type Field Description static intACTION_CODEstatic intCHARCLASSstatic intCHARRANGEstatic intCLASSCHARSstatic intCODEstatic intCOMMENTstatic intEXPRBARstatic intMACROSstatic intMACROUSEstatic intREGEXPstatic intREGEXP_CODEPOINTstatic intREGEXPSTARTstatic intREGEXPSTART0static intREPEATEXPstatic intREPORT_UNCLOSEDstatic intSKIP_TOEOLstatic intSKIP_WSNLstatic intSTATESstatic intSTRING_CODEPOINTstatic intSTRING_CONTENTstatic intYYEOFThis character denotes the end of filestatic intYYINITIALlexical states
-
Constructor Summary
Constructors Constructor Description _JFlexLexer()_JFlexLexer(java.io.Reader in)Creates a new scanner
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.intellij.psi.tree.IElementTypeadvance()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.intgetTokenEnd()intgetTokenStart()voidreset(java.lang.CharSequence buffer, int start, int end, int initialState)voidyybegin(int newState)Enters a new lexical statecharyycharat(int pos)Returns the character at position pos from the matched text.intyylength()Returns the length of the matched text region.voidyypushback(int number)Pushes the specified amount of characters back into the input stream.intyystate()Returns the current lexical state.java.lang.CharSequenceyytext()Returns the text matched by the current regular expression.static intZZ_CMAP(int ch)Translates characters to character classes Chosen bits are [13, 6, 2] Total runtime size is 23072 bytes
-
-
-
Field Detail
-
YYEOF
public static final int YYEOF
This character denotes the end of file- See Also:
- Constant Field Values
-
YYINITIAL
public static final int YYINITIAL
lexical states- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
MACROS
public static final int MACROS
- See Also:
- Constant Field Values
-
CODE
public static final int CODE
- See Also:
- Constant Field Values
-
REGEXPSTART
public static final int REGEXPSTART
- See Also:
- Constant Field Values
-
EXPRBAR
public static final int EXPRBAR
- See Also:
- Constant Field Values
-
REGEXP
public static final int REGEXP
- See Also:
- Constant Field Values
-
STATES
public static final int STATES
- See Also:
- Constant Field Values
-
ACTION_CODE
public static final int ACTION_CODE
- See Also:
- Constant Field Values
-
STRING_CONTENT
public static final int STRING_CONTENT
- See Also:
- Constant Field Values
-
CHARCLASS
public static final int CHARCLASS
- See Also:
- Constant Field Values
-
MACROUSE
public static final int MACROUSE
- See Also:
- Constant Field Values
-
REPEATEXP
public static final int REPEATEXP
- See Also:
- Constant Field Values
-
CLASSCHARS
public static final int CLASSCHARS
- See Also:
- Constant Field Values
-
CHARRANGE
public static final int CHARRANGE
- See Also:
- Constant Field Values
-
REGEXP_CODEPOINT
public static final int REGEXP_CODEPOINT
- See Also:
- Constant Field Values
-
STRING_CODEPOINT
public static final int STRING_CODEPOINT
- See Also:
- Constant Field Values
-
SKIP_TOEOL
public static final int SKIP_TOEOL
- See Also:
- Constant Field Values
-
SKIP_WSNL
public static final int SKIP_WSNL
- See Also:
- Constant Field Values
-
REPORT_UNCLOSED
public static final int REPORT_UNCLOSED
- See Also:
- Constant Field Values
-
REGEXPSTART0
public static final int REGEXPSTART0
- See Also:
- Constant Field Values
-
-
Method Detail
-
ZZ_CMAP
public static int ZZ_CMAP(int ch)
Translates characters to character classes Chosen bits are [13, 6, 2] Total runtime size is 23072 bytes
-
getTokenStart
public final int getTokenStart()
- Specified by:
getTokenStartin interfacecom.intellij.lexer.FlexLexer
-
getTokenEnd
public final int getTokenEnd()
- Specified by:
getTokenEndin interfacecom.intellij.lexer.FlexLexer
-
reset
public void reset(java.lang.CharSequence buffer, int start, int end, int initialState)- Specified by:
resetin interfacecom.intellij.lexer.FlexLexer
-
yystate
public final int yystate()
Returns the current lexical state.- Specified by:
yystatein interfacecom.intellij.lexer.FlexLexer
-
yybegin
public final void yybegin(int newState)
Enters a new lexical state- Specified by:
yybeginin interfacecom.intellij.lexer.FlexLexer- Parameters:
newState- the new lexical state
-
yytext
public final java.lang.CharSequence yytext()
Returns the text matched by the current regular expression.
-
yycharat
public final char yycharat(int pos)
Returns the character at position pos from the matched text. It is equivalent to yytext().charAt(pos), but faster- Parameters:
pos- the position of the character to fetch. A value from 0 to yylength()-1.- Returns:
- the character at position pos
-
yylength
public final int yylength()
Returns the length of the matched text region.
-
yypushback
public void yypushback(int number)
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method- Parameters:
number- the number of characters to be read again. This number must not be greater than yylength()!
-
advance
public com.intellij.psi.tree.IElementType advance() throws java.io.IOExceptionResumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.- Specified by:
advancein interfacecom.intellij.lexer.FlexLexer- Returns:
- the next token
- Throws:
java.io.IOException- if any I/O-Error occurs
-
-