PHP Interface PDepend\Source\Tokenizer\Tokenizer

Afficher le fichier Open project: horde/horde Interface Usage Examples

Méthodes publiques

Méthode Description
getSourceFile ( ) : string Returns the name of the source file.
next ( ) : PDepend\Source\Tokenizer\Token Returns the next token or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
peek ( ) : integer Returns the next token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
peekNext ( ) : integer Returns the type of next token, after the current token. This method ignores all comments between the current and the next token.
prev ( ) : integer Returns the previous token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_BOF} if there is no previous token.
setSourceFile ( string $sourceFile ) : void Sets a new php source file.

Method Details

getSourceFile() public méthode

Returns the name of the source file.
public getSourceFile ( ) : string
Résultat string

next() public méthode

Returns the next token or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
public next ( ) : PDepend\Source\Tokenizer\Token
Résultat PDepend\Source\Tokenizer\Token

peek() public méthode

Returns the next token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
public peek ( ) : integer
Résultat integer

peekNext() public méthode

Returns the type of next token, after the current token. This method ignores all comments between the current and the next token.
Since: 0.9.12
public peekNext ( ) : integer
Résultat integer

prev() public méthode

Returns the previous token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_BOF} if there is no previous token.
public prev ( ) : integer
Résultat integer

setSourceFile() public méthode

Sets a new php source file.
public setSourceFile ( string $sourceFile ) : void
$sourceFile string A php source file.
Résultat void