Methods summary
public
|
|
public
array|null
|
|
public
string|null
|
#
currentValue( )
Returns current token value.
Returns current token value.
Returns
string|null
|
public
array|null
|
#
nextToken( )
Returns next token.
Returns
array|null
|
public
string|null
|
#
nextValue( )
Returns next token value.
Returns next token value.
Returns
string|null
|
public
array[]
|
#
nextAll( )
Returns all next tokens.
Returns
array[]
|
public
array[]
|
#
nextUntil( integer|string $arg )
Returns all next tokens until it sees a given token type or value.
Returns all next tokens until it sees a given token type or value.
Parameters
- $arg
integer|string token type or value to stop before
Returns
array[]
|
public
string
|
#
joinAll( )
Returns concatenation of all next token values.
Returns concatenation of all next token values.
Returns
string
|
public
string
|
#
joinUntil( integer|string $arg )
Returns concatenation of all next tokens until it sees a given token type or
value.
Returns concatenation of all next tokens until it sees a given token type or
value.
Parameters
- $arg
integer|string token type or value to stop before
Returns
string
|
public
boolean
|
#
isCurrent( integer|string $arg )
Checks the current token.
Checks the current token.
Parameters
- $arg
integer|string token type or value
Returns
boolean
|
public
boolean
|
#
isNext( )
Checks the next token existence.
Checks the next token existence.
Returns
boolean
|
public
boolean
|
#
isPrev( )
Checks the previous token existence.
Checks the previous token existence.
Returns
boolean
|
public
Nette\Utils\TokenIterator
|
|
protected
|
#
next( )
Moves cursor to next token.
Moves cursor to next token.
|
protected
mixed
|
#
scan( array $wanted, boolean $onlyFirst, boolean $advance, boolean $strings = FALSE, boolean $until = FALSE, boolean $prev = FALSE )
Looks for (first) (not) wanted tokens.
Looks for (first) (not) wanted tokens.
Parameters
- $wanted
array of desired token types or values
- $onlyFirst
boolean
- $advance
boolean
- $strings
boolean
- $until
boolean
- $prev
boolean
Returns
mixed
|