PHP 클래스 Twig_Lexer, php-framework-benchmarks

저자: Fabien Potencier ([email protected])
상속: implements Twig_LexerInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$code
$cursor
$end
$env
$filename
$lineno
$operatorRegex
$options
$position
$pushedBack

공개 메소드들

메소드 설명
__construct ( Twig_Environment $env = null, array $options = [] )
setEnvironment ( Twig_Environment $env )
sortByLength ( $a, $b )
tokenize ( string $code, string $filename = 'n/a' ) : Twig_TokenStream Tokenizes a source code.

보호된 메소드들

메소드 설명
getOperatorRegex ( )
lexBlock ( )
lexData ( )
lexExpression ( )
lexVar ( )
moveCursor ( $text )
moveLineNo ( $text )
nextToken ( ) Parses the next token and returns it.

메소드 상세

__construct() 공개 메소드

public __construct ( Twig_Environment $env = null, array $options = [] )
$env Twig_Environment
$options array

getOperatorRegex() 보호된 메소드

protected getOperatorRegex ( )

lexBlock() 보호된 메소드

protected lexBlock ( )

lexData() 보호된 메소드

protected lexData ( )

lexExpression() 보호된 메소드

protected lexExpression ( )

lexVar() 보호된 메소드

protected lexVar ( )

moveCursor() 보호된 메소드

protected moveCursor ( $text )

moveLineNo() 보호된 메소드

protected moveLineNo ( $text )

nextToken() 보호된 메소드

Parses the next token and returns it.
protected nextToken ( )

setEnvironment() 공개 메소드

public setEnvironment ( Twig_Environment $env )
$env Twig_Environment

sortByLength() 공개 메소드

public sortByLength ( $a, $b )

tokenize() 공개 메소드

Tokenizes a source code.
public tokenize ( string $code, string $filename = 'n/a' ) : Twig_TokenStream
$code string The source code
$filename string A unique identifier for the source code
리턴 Twig_TokenStream A token stream instance

프로퍼티 상세

$code 보호되어 있는 프로퍼티

protected $code

$cursor 보호되어 있는 프로퍼티

protected $cursor

$end 보호되어 있는 프로퍼티

protected $end

$env 보호되어 있는 프로퍼티

protected $env

$filename 보호되어 있는 프로퍼티

protected $filename

$lineno 보호되어 있는 프로퍼티

protected $lineno

$operatorRegex 보호되어 있는 프로퍼티

protected $operatorRegex

$options 보호되어 있는 프로퍼티

protected $options

$position 보호되어 있는 프로퍼티

protected $position

$pushedBack 보호되어 있는 프로퍼티

protected $pushedBack