PHP Класс Zephir\Call

Base class for common functionality in functions/calls
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_expression zephir\Expression Call expression
$_isExpecting
$_mustCheckForCopy
$_mustInit
$_reflection
$_resolvedDynamicTypes
$_resolvedParams
$_resolvedTypes
$_symbolVariable
$_temporalVariables

Открытые методы

Метод Описание
addCallStatusFlag ( zephir\CompilationContext $compilationContext ) Add the last-call-status flag to the current symbol table
addCallStatusOrJump ( zephir\CompilationContext $compilationContext ) Checks the last call status or make a label jump to the next catch block
checkTempParameters ( zephir\CompilationContext $compilationContext ) Checks if temporary parameters must be copied or not
getMustCheckForCopyVariables ( ) : array Parameters to check if they must be copied
getReadOnlyResolvedParams ( array $parameters, zephir\CompilationContext $compilationContext, array $expression ) : array Resolve parameters using zvals in the stack and without allocating memory for constants
getResolvedDynamicTypes ( ) : array Return resolved parameter dynamic types
getResolvedParams ( array $parameters, zephir\CompilationContext $compilationContext, array $expression, array $calleeDefinition = null ) : array Resolve parameters getting aware that the target function/method could retain or change the parameters
getResolvedParamsAsExpr ( array $parameters, zephir\CompilationContext $compilationContext, array $expression, boolean $readOnly = false ) : array Resolves parameters
getResolvedTypes ( ) : array Return resolved parameter types
getSymbolVariable ( boolean $useTemp = false, zephir\CompilationContext $compilationContext = null ) : Variable Returns the symbol variable that must be returned by the call
getTemporalVariables ( ) : Variable[] Returns the temporal variables generated during the parameter resolving
isExpectingReturn ( ) : boolean Check if an external expression is expecting the call return a value
mustInitSymbolVariable ( ) : boolean Returns if the symbol to be returned by the call must be initialized
processExpectedComplexLiteralReturn ( zephir\CompilationContext $compilationContext ) Processes the symbol variable that will be used to return the result of the symbol call. If a temporal variable is used as returned value only the body is freed between calls
processExpectedObservedReturn ( zephir\CompilationContext $compilationContext ) Processes the symbol variable that will be used to return the result of the symbol call
processExpectedReturn ( zephir\CompilationContext $compilationContext ) Processes the symbol variable that will be used to return the result of the symbol call

Описание методов

addCallStatusFlag() публичный Метод

Add the last-call-status flag to the current symbol table
public addCallStatusFlag ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

addCallStatusOrJump() публичный Метод

Checks the last call status or make a label jump to the next catch block
public addCallStatusOrJump ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

checkTempParameters() публичный Метод

Checks if temporary parameters must be copied or not
public checkTempParameters ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

getMustCheckForCopyVariables() публичный Метод

Parameters to check if they must be copied
public getMustCheckForCopyVariables ( ) : array
Результат array

getReadOnlyResolvedParams() публичный Метод

Resolve parameters using zvals in the stack and without allocating memory for constants
public getReadOnlyResolvedParams ( array $parameters, zephir\CompilationContext $compilationContext, array $expression ) : array
$parameters array
$compilationContext zephir\CompilationContext
$expression array
Результат array

getResolvedDynamicTypes() публичный Метод

Return resolved parameter dynamic types
public getResolvedDynamicTypes ( ) : array
Результат array

getResolvedParams() публичный Метод

Resolve parameters getting aware that the target function/method could retain or change the parameters
public getResolvedParams ( array $parameters, zephir\CompilationContext $compilationContext, array $expression, array $calleeDefinition = null ) : array
$parameters array
$compilationContext zephir\CompilationContext
$expression array
$calleeDefinition array
Результат array

getResolvedParamsAsExpr() публичный Метод

Resolves parameters
public getResolvedParamsAsExpr ( array $parameters, zephir\CompilationContext $compilationContext, array $expression, boolean $readOnly = false ) : array
$parameters array
$compilationContext zephir\CompilationContext
$expression array
$readOnly boolean
Результат array

getResolvedTypes() публичный Метод

Return resolved parameter types
public getResolvedTypes ( ) : array
Результат array

getSymbolVariable() публичный Метод

Returns the symbol variable that must be returned by the call
public getSymbolVariable ( boolean $useTemp = false, zephir\CompilationContext $compilationContext = null ) : Variable
$useTemp boolean
$compilationContext zephir\CompilationContext
Результат Variable

getTemporalVariables() публичный Метод

Returns the temporal variables generated during the parameter resolving
public getTemporalVariables ( ) : Variable[]
Результат Variable[]

isExpectingReturn() публичный Метод

Check if an external expression is expecting the call return a value
public isExpectingReturn ( ) : boolean
Результат boolean

mustInitSymbolVariable() публичный Метод

Returns if the symbol to be returned by the call must be initialized
public mustInitSymbolVariable ( ) : boolean
Результат boolean

processExpectedComplexLiteralReturn() публичный Метод

Processes the symbol variable that will be used to return the result of the symbol call. If a temporal variable is used as returned value only the body is freed between calls
public processExpectedComplexLiteralReturn ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

processExpectedObservedReturn() публичный Метод

Processes the symbol variable that will be used to return the result of the symbol call
public processExpectedObservedReturn ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

processExpectedReturn() публичный Метод

Processes the symbol variable that will be used to return the result of the symbol call
public processExpectedReturn ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

Описание свойств

$_expression защищенное свойство

Call expression
protected Expression,zephir $_expression
Результат zephir\Expression

$_isExpecting защищенное свойство

protected $_isExpecting

$_mustCheckForCopy защищенное свойство

protected $_mustCheckForCopy

$_mustInit защищенное свойство

protected $_mustInit

$_reflection защищенное свойство

protected $_reflection

$_resolvedDynamicTypes защищенное свойство

protected $_resolvedDynamicTypes

$_resolvedParams защищенное свойство

protected $_resolvedParams

$_resolvedTypes защищенное свойство

protected $_resolvedTypes

$_symbolVariable защищенное свойство

protected $_symbolVariable

$_temporalVariables защищенное свойство

protected $_temporalVariables