PHP 클래스 Zephir\Operators\Arithmetical\ArithmeticalBaseOperator

This is the base operator for commutative, associative and distributive arithmetic operators
상속: extends Zephir\Operators\BaseOperator
파일 보기 프로젝트 열기: phalcon/zephir

보호된 프로퍼티들

프로퍼티 타입 설명
$_literalOnly

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
getDynamicTypes ( Variable $left, Variable $right ) : string Returns proper dynamic types

메소드 상세

compile() 공개 메소드

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
또한 보기: http://en.wikipedia.org/wiki/Constant_folding
public optimizeConstantFolding ( array $expression, Zephir\CompilationContext $compilationContext ) : boolean | Zephir\CompiledExpression
$expression array
$compilationContext Zephir\CompilationContext
리턴 boolean | Zephir\CompiledExpression

프로퍼티 상세

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

protected $_literalOnly