PHP Class Coduo\PHPMatcher\Lexer

Inheritance: extends Doctrine\Common\Lexer\AbstractLexer
Datei anzeigen Open project: coduo/php-matcher Class Usage Examples

Protected Methods

Method Description
extractStringValue ( $value ) : string
getCatchablePatterns ( ) : array Lexical catchable patterns.
getNonCatchablePatterns ( ) : array Lexical non-catchable patterns.
getType ( string &$value ) : integer Retrieve token type. Also processes the token value if necessary.
isBooleanToken ( string $value ) : boolean
isExpanderNameToken ( $value ) : boolean
isNullToken ( string $value ) : boolean
isStringToken ( $value ) : boolean
isTypePatternToken ( $value ) : boolean

Method Details

extractStringValue() protected method

protected extractStringValue ( $value ) : string
$value
return string

getCatchablePatterns() protected method

Lexical catchable patterns.
protected getCatchablePatterns ( ) : array
return array

getNonCatchablePatterns() protected method

Lexical non-catchable patterns.
protected getNonCatchablePatterns ( ) : array
return array

getType() protected method

Retrieve token type. Also processes the token value if necessary.
protected getType ( string &$value ) : integer
$value string
return integer

isBooleanToken() protected method

protected isBooleanToken ( string $value ) : boolean
$value string
return boolean

isExpanderNameToken() protected method

protected isExpanderNameToken ( $value ) : boolean
$value
return boolean

isNullToken() protected method

protected isNullToken ( string $value ) : boolean
$value string
return boolean

isStringToken() protected method

protected isStringToken ( $value ) : boolean
$value
return boolean

isTypePatternToken() protected method

protected isTypePatternToken ( $value ) : boolean
$value
return boolean