PHP 인터페이스 PDepend\Source\Tokenizer\Tokenizer

파일 보기 프로젝트 열기: horde/horde 0 사용 예제들

공개 메소드들

메소드 설명
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