Method | Description | |
---|---|---|
__construct ( Behat\Gherkin\Keywords\KeywordsInterface $keywords ) | Initializes lexer. | |
analyse ( string $input, string $language = 'en' ) | Sets lexer input. | |
deferToken ( array $token ) | Defers token. | |
getAdvancedToken ( ) : array | Returns next token or previously stashed one. | |
getLanguage ( ) : string | Returns current lexer language. | |
predictToken ( ) : array | Predicts for number of tokens. | |
takeToken ( string $type, string $value = null ) : array | Constructs token with specified parameters. |
Method | Description | |
---|---|---|
consumeLine ( ) | Consumes line from input & increments line counter. | |
getDeferredToken ( ) : array | null | Returns deferred token or null if hasn't. | |
getKeywords ( string $type ) : string | Returns keywords for provided type. | |
getNextToken ( ) : array | Returns next token from input. | |
getStashedToken ( ) : array | null | Returns stashed token or null if hasn't. | |
getTrimmedLine ( ) : string | Returns trimmed version of line. | |
scanBackground ( ) : null | array | Scans Background from input & returns it if found. | |
scanComment ( ) : null | array | Scans Comment from input & returns it if found. | |
scanEOS ( ) : null | array | Scans EOS from input & returns it if found. | |
scanExamples ( ) : null | array | Scans Scenario Outline Examples from input & returns it if found. | |
scanFeature ( ) : null | array | Scans Feature from input & returns it if found. | |
scanInput ( string $regex, string $type ) : null | array | Scans for token with specified regex. | |
scanInputForKeywords ( string $keywords, string $type ) : null | array | Scans for token with specified keywords. | |
scanLanguage ( ) : null | array | Scans Language specifier from input & returns it if found. | |
scanNewline ( ) : null | array | Scans Newline from input & returns it if found. | |
scanOutline ( ) : null | array | Scans Scenario Outline from input & returns it if found. | |
scanPyStringContent ( ) : null | array | Scans PyString content. | |
scanPyStringOp ( ) : null | array | Scans PyString from input & returns it if found. | |
scanScenario ( ) : null | array | Scans Scenario from input & returns it if found. | |
scanStep ( ) : null | array | Scans Step from input & returns it if found. | |
scanTableRow ( ) : null | array | Scans Table Row from input & returns it if found. | |
scanTags ( ) : null | array | Scans Tags from input & returns it if found. | |
scanText ( ) : null | array | Scans text from input & returns it if found. |
Method | Description | |
---|---|---|
getStepKeywordType ( string $native ) : string | Returns step type keyword (Given, When, Then, etc.). |
public __construct ( Behat\Gherkin\Keywords\KeywordsInterface $keywords ) | ||
$keywords | Behat\Gherkin\Keywords\KeywordsInterface | Keywords holder |
protected consumeLine ( ) |
public deferToken ( array $token ) | ||
$token | array | Token to defer |
public getAdvancedToken ( ) : array | ||
return | array |
protected getDeferredToken ( ) : array | null | ||
return | array | null |
protected getKeywords ( string $type ) : string | ||
$type | string | Keyword type |
return | string |
public getLanguage ( ) : string | ||
return | string |
protected getNextToken ( ) : array | ||
return | array |
protected getStashedToken ( ) : array | null | ||
return | array | null |
protected getTrimmedLine ( ) : string | ||
return | string |
public predictToken ( ) : array | ||
return | array |
protected scanBackground ( ) : null | array | ||
return | null | array |
protected scanComment ( ) : null | array | ||
return | null | array |
protected scanExamples ( ) : null | array | ||
return | null | array |
protected scanFeature ( ) : null | array | ||
return | null | array |
protected scanLanguage ( ) : null | array | ||
return | null | array |
protected scanNewline ( ) : null | array | ||
return | null | array |
protected scanOutline ( ) : null | array | ||
return | null | array |
protected scanPyStringContent ( ) : null | array | ||
return | null | array |
protected scanPyStringOp ( ) : null | array | ||
return | null | array |
protected scanScenario ( ) : null | array | ||
return | null | array |
protected scanTableRow ( ) : null | array | ||
return | null | array |