Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Kahlan
Jit
TokenStream
is
Kahlan\Jit\TokenStream::is PHP 메소드
TokenStream 1 문서
파일 보기
프로젝트 열기: crysalead/kahlan
is()
공개
메소드
Checks if there is a token of the given type at the given position.
public
is
(
integer
|
string
$type
,
integer
$index
= null ) :
boolean
$type
integer
|
string
Token type.
$index
integer
Token position, if none given, consider the current iteration position.
리턴
boolean
public function is($type, $index = null) { return $this->getType($index) === $type; }
TokenStream
__construct
__toString
_getToken
_skip
count
current
getName
getType
getValue
is
key
load
next
nextMatchingBracket
nextSequence
offsetExists
offsetGet
offsetSet
offsetUnset
prev
rewind
seek
skipWhile
skipWhitespaces
source
valid