Methods summary
public
|
|
public
Nette\Tokenizer\Token |null
|
|
public
string|null
|
#
currentValue( )
Returns current token value.
Returns current token value.
Returns
string|null string|null
|
public
Nette\Tokenizer\Token |null
|
|
public
string|null
|
#
nextValue( )
Returns next token value.
Returns next token value.
Returns
string|null string|null
|
public
Nette\Tokenizer\Token[]
|
#
nextAll( )
Returns all next tokens.
Returns
|
public
Nette\Tokenizer\Token[]
|
#
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
- type or value to stop before
Returns
|
public
string
|
#
joinAll( )
Returns concatenation of all next token values.
Returns concatenation of all next token values.
Returns
string 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
- type or value to stop before
Returns
string string
|
public
boolean
|
#
isCurrent( integer|string $arg )
Checks the current token.
Checks the current token.
Parameters
Returns
boolean bool
|
public
boolean
|
#
isNext( )
Checks the next token existence.
Checks the next token existence.
Returns
boolean bool
|
public
boolean
|
#
isPrev( )
Checks the previous token existence.
Checks the previous token existence.
Returns
boolean bool
|
public
Nette\Tokenizer\Stream
|
|
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
- desired token types or values
- $onlyFirst
- $advance
- $strings
- $until
- $prev
Returns
mixed mixed
|