PHP Class Pinq\Analysis\TypeSystem

Author: Elliot Levin ([email protected])
Inheritance: implements Pinq\Analysis\ITypeSystem
Afficher le fichier Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Свойство Type Description
$binaryOperations Pinq\Analysis\IBinaryOperation[]
$compositeTypes Pinq\Analysis\ICompositeType[]
$customTypes Pinq\Analysis\IType[]
$functions Pinq\Analysis\IFunction[]
$nativeTypes Pinq\Analysis\INativeType[]
$objectTypes Pinq\Analysis\IObjectType[]

Méthodes publiques

Méthode Description
__construct ( )
getBinaryOperation ( Pinq\Analysis\IType $leftOperandType, $operator, Pinq\Analysis\IType $rightOperandType )
getCompositeType ( array $types )
getFunction ( $name )
getNativeType ( $nativeType )
getObjectType ( $classType )
getType ( $typeIdentifier )

Méthodes protégées

Méthode Description
binaryOperations ( ) : array[]
buildBinaryOperations ( ) : Pinq\Analysis\IBinaryOperation[]
buildCompositeType ( string $typeId, array $types ) : Pinq\Analysis\ICompositeType
buildFunction ( string $name ) : Pinq\Analysis\IFunction
buildNativeTypes ( ) : Pinq\Analysis\INativeType[]
buildObjectType ( string $typeId, string $classType ) : Pinq\Analysis\IObjectType
buildTypeOperations ( $type, array $operatorTypeMap = [] )
flattenComposedTypes ( array $types ) : Pinq\Analysis\IType[] Flattens all the composed types.
nativeTypes ( ) : Pinq\Analysis\INativeType[]
normalizeClassName ( string $name ) : string Performs all necessary normalization to the class name.
normalizeFunctionName ( string $name ) : string Performs all necessary normalization the function name.

Method Details

__construct() public méthode

public __construct ( )

binaryOperations() abstract protected méthode

abstract protected binaryOperations ( ) : array[]
Résultat array[]

buildBinaryOperations() protected méthode

protected buildBinaryOperations ( ) : Pinq\Analysis\IBinaryOperation[]
Résultat Pinq\Analysis\IBinaryOperation[]

buildCompositeType() abstract protected méthode

abstract protected buildCompositeType ( string $typeId, array $types ) : Pinq\Analysis\ICompositeType
$typeId string
$types array
Résultat Pinq\Analysis\ICompositeType

buildFunction() abstract protected méthode

abstract protected buildFunction ( string $name ) : Pinq\Analysis\IFunction
$name string
Résultat Pinq\Analysis\IFunction

buildNativeTypes() protected méthode

protected buildNativeTypes ( ) : Pinq\Analysis\INativeType[]
Résultat Pinq\Analysis\INativeType[]

buildObjectType() abstract protected méthode

abstract protected buildObjectType ( string $typeId, string $classType ) : Pinq\Analysis\IObjectType
$typeId string
$classType string
Résultat Pinq\Analysis\IObjectType

buildTypeOperations() protected méthode

protected buildTypeOperations ( $type, array $operatorTypeMap = [] )
$operatorTypeMap array

flattenComposedTypes() protected méthode

Flattens all the composed types.
protected flattenComposedTypes ( array $types ) : Pinq\Analysis\IType[]
$types array
Résultat Pinq\Analysis\IType[]

getBinaryOperation() public méthode

public getBinaryOperation ( Pinq\Analysis\IType $leftOperandType, $operator, Pinq\Analysis\IType $rightOperandType )
$leftOperandType Pinq\Analysis\IType
$rightOperandType Pinq\Analysis\IType

getCompositeType() public méthode

public getCompositeType ( array $types )
$types array

getFunction() public méthode

public getFunction ( $name )

getNativeType() public méthode

public getNativeType ( $nativeType )

getObjectType() public méthode

public getObjectType ( $classType )

getType() public méthode

public getType ( $typeIdentifier )

nativeTypes() abstract protected méthode

abstract protected nativeTypes ( ) : Pinq\Analysis\INativeType[]
Résultat Pinq\Analysis\INativeType[]

normalizeClassName() protected méthode

Performs all necessary normalization to the class name.
protected normalizeClassName ( string $name ) : string
$name string
Résultat string

normalizeFunctionName() protected méthode

Performs all necessary normalization the function name.
protected normalizeFunctionName ( string $name ) : string
$name string
Résultat string

Property Details

$binaryOperations protected_oe property

protected IBinaryOperation[],Pinq\Analysis $binaryOperations
Résultat Pinq\Analysis\IBinaryOperation[]

$compositeTypes protected_oe property

protected ICompositeType[],Pinq\Analysis $compositeTypes
Résultat Pinq\Analysis\ICompositeType[]

$customTypes protected_oe property

protected IType[],Pinq\Analysis $customTypes
Résultat Pinq\Analysis\IType[]

$functions protected_oe property

protected IFunction[],Pinq\Analysis $functions
Résultat Pinq\Analysis\IFunction[]

$nativeTypes protected_oe property

protected INativeType[],Pinq\Analysis $nativeTypes
Résultat Pinq\Analysis\INativeType[]

$objectTypes protected_oe property

protected IObjectType[],Pinq\Analysis $objectTypes
Résultat Pinq\Analysis\IObjectType[]