PHP 클래스 Zephir\Optimizers\EvalExpression

Resolves evaluation of expressions returning a C-int expression that can be used by 'if'/'while'/'do-while' statements
파일 보기 프로젝트 열기: phalcon/zephir 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_unreachable
$_unreachableElse
$_usedVariables

공개 메소드들

메소드 설명
getEvalVariable ( ) : Variable Returns the variable evaluated by the EvalExpression
getUsedVariables ( ) : array
isUnreachable ( ) : boolean Checks if the evaluation produce unreachable code
isUnreachableElse ( ) : boolean Checks if the evaluation not produce unreachable code
optimize ( $exprRaw, Zephir\CompilationContext $compilationContext ) : boolean | string Optimizes expressions
optimizeNot ( array $expr, Zephir\CompilationContext $compilationContext ) : boolean | string Skips the not operator by recursively optimizing the expression at its right

메소드 상세

getEvalVariable() 공개 메소드

Returns the variable evaluated by the EvalExpression
public getEvalVariable ( ) : Variable
리턴 Zephir\Variable

getUsedVariables() 공개 메소드

public getUsedVariables ( ) : array
리턴 array

isUnreachable() 공개 메소드

Checks if the evaluation produce unreachable code
public isUnreachable ( ) : boolean
리턴 boolean

isUnreachableElse() 공개 메소드

Checks if the evaluation not produce unreachable code
public isUnreachableElse ( ) : boolean
리턴 boolean

optimize() 공개 메소드

Optimizes expressions
public optimize ( $exprRaw, Zephir\CompilationContext $compilationContext ) : boolean | string
$exprRaw
$compilationContext Zephir\CompilationContext
리턴 boolean | string

optimizeNot() 공개 메소드

Skips the not operator by recursively optimizing the expression at its right
public optimizeNot ( array $expr, Zephir\CompilationContext $compilationContext ) : boolean | string
$expr array
$compilationContext Zephir\CompilationContext
리턴 boolean | string

프로퍼티 상세

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

protected $_unreachable

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

protected $_unreachableElse

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

protected $_usedVariables