PHP Интерфейс PDepend\Source\Tokenizer\Tokenizer

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

getSourceFile() публичный Метод

Returns the name of the source file.
public getSourceFile ( ) : string
Результат string

next() публичный Метод

Returns the next token or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
public next ( ) : PDepend\Source\Tokenizer\Token
Результат PDepend\Source\Tokenizer\Token

peek() публичный Метод

Returns the next token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
public peek ( ) : integer
Результат integer

peekNext() публичный Метод

Returns the type of next token, after the current token. This method ignores all comments between the current and the next token.
С версии: 0.9.12
public peekNext ( ) : integer
Результат integer

prev() публичный Метод

Returns the previous token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_BOF} if there is no previous token.
public prev ( ) : integer
Результат integer

setSourceFile() публичный Метод

Sets a new php source file.
public setSourceFile ( string $sourceFile ) : void
$sourceFile string A php source file.
Результат void