# Class: com.pnfsoftware.jeb.util.encoding.jflex.lexers.PythonLexer

## Constructor: PythonLexer

Description: Create an empty lexer, yyrset will be called later to reset and assign the reader

## Constructor: PythonLexer
- parameter: `in`, type: `java.io.Reader`

Description: Creates a new scanner
parameter: in: the java.io.Reader to read input from.

## Static Field: ML_STRING
Type: `int`

Constant value: `4`

## Static Field: SQML_STRING
Type: `int`

Constant value: `8`

## Static Field: SQSTRING
Type: `int`

Constant value: `6`

## Static Field: STRING
Type: `int`

Constant value: `2`

## Static Field: YYEOF
Type: `int`

Constant value: `-1`
Description: This character denotes the end of file.

## Static Field: YYINITIAL
Type: `int`

Constant value: `0`

## Method: yyatEOF
- return type: `boolean`

Description: Returns whether the scanner has reached the end of the reader it reads from.
return: whether the scanner has reached EOF.

## Method: yybegin
- parameter: `newState`, type: `int`

Description: Enters a new lexical state.
parameter: newState: the new lexical state

## Method: yychar
- return type: `long`


## Method: yycharat
- parameter: `position`, type: `int`
- return type: `char`

Description: Returns the character at the given position from the matched text. 

It is equivalent to `yytext().charAt(pos)`, but faster.
parameter: position: the position of the character to fetch. A value from 0 to `yylength()-1`.
return: the character at `position`.

## Method: yyclose

Description: Closes the input reader.
throws: if the reader could not be closed.

## Method: yylength
- return type: `int`

Description: How many characters were matched.
return: the length of the matched text region.

## Method: yylex
- return type: `com.pnfsoftware.jeb.util.encoding.jflex.Token`

Description: Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O\-Error occurs.
return: the next token.
throws: if any I/O\-Error occurs.

## Method: yypushback
- parameter: `number`, type: `int`

Description: Pushes the specified amount of characters back into the input stream. 

They will be read again by then next call of the scanning method.
parameter: number: the number of characters to be read again. This number must not be greater than     [#yylength()](#yylength()).

## Method: yyreset
- parameter: `reader`, type: `java.io.Reader`

Description: Resets the scanner to read from a new input stream. 

Does not close the old reader. 

All internal variables are reset, the old input stream **cannot** be reused \(internal buffer is discarded and lost\). Lexical state is set to `ZZ_INITIAL`. 

Internal scan buffer is resized down to its initial length, if it has grown.
parameter: reader: The new input stream.

## Method: yystate
- return type: `int`

Description: Returns the current lexical state.
return: the current lexical state.

## Method: yytext
- return type: `java.lang.String`

Description: Returns the text matched by the current regular expression.
return: the matched text.

