PHP 클래스 Zephir\Operators\Arithmetical\ArithmeticalBaseOperator
This is the base operator for commutative, associative and distributive
arithmetic operators
파일 보기
프로젝트 열기: phalcon/zephir
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
compile ( array $expression, Zephir\CompilationContext $compilationContext ) |
Compiles the arithmetical operation |
|
optimizeConstantFolding ( array $expression, Zephir\CompilationContext $compilationContext ) : boolean | Zephir\CompiledExpression |
This tries to perform arithmetical operations
Probably gcc/clang will optimize them without this optimization |
|
비공개 메소드들
메소드 상세
Compiles the arithmetical operation
public compile ( array $expression, Zephir\CompilationContext $compilationContext ) |
$expression |
array |
|
$compilationContext |
Zephir\CompilationContext |
|
optimizeConstantFolding()
공개 메소드
This tries to perform arithmetical operations
Probably gcc/clang will optimize them without this optimization
public optimizeConstantFolding ( array $expression, Zephir\CompilationContext $compilationContext ) : boolean | Zephir\CompiledExpression |
$expression |
array |
|
$compilationContext |
Zephir\CompilationContext |
|
리턴 |
boolean | Zephir\CompiledExpression |
|
프로퍼티 상세
$_literalOnly 보호되어 있는 프로퍼티