PHP Interface PDepend\Source\Tokenizer\Tokenizer

Mostra file Open project: horde/horde Interface Usage Examples

Public Methods

Method 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 method

Returns the name of the source file.
public getSourceFile ( ) : string
return string

next() public method

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

peek() public method

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

peekNext() public method

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
return integer

prev() public method

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

setSourceFile() public method

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