PHP Интерфейс Pinq\Analysis\IType

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
getCast ( CastExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod Gets the matched unary operator from the supplied expression.
getConstructor ( NewExpression $expression ) : Pinq\Analysis\IConstructor Gets the supplied expression matches the type's constructor.
getField ( FieldExpression $expression ) : Pinq\Analysis\IField Gets the matched field of the supplied expression.
getIdentifier ( ) : string Gets a unique string representation of the type.
getIndex ( IndexExpression $expression ) : Pinq\Analysis\ITypeOperation Get the supplied index expression matches the type.
getInvocation ( InvocationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod Gets the invocation expression matches the type.
getMethod ( MethodCallExpression $expression ) : Pinq\Analysis\IMethod Gets the matched method of the supplied expression.
getParentType ( ) : Pinq\Analysis\IType | null Gets the parent type or null if their is no parent.
getStaticField ( StaticFieldExpression $expression ) : Pinq\Analysis\IField Gets the matched field of the supplied expression.
getStaticMethod ( StaticMethodCallExpression $expression ) : Pinq\Analysis\IMethod Gets the matched method of the supplied expression.
getUnaryOperation ( UnaryOperationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod Gets the matched unary operator from the supplied expression.
hasParentType ( ) : boolean Whether the type has a parent type.
isEqualTo ( Pinq\Analysis\IType $type ) : boolean Whether the supplied type is equivalent to the current type.
isParentTypeOf ( Pinq\Analysis\IType $type ) : boolean Whether the supplied type is a subtype of or equal to the current type.

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

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

Gets the matched unary operator from the supplied expression.
public getCast ( CastExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\CastExpression
Результат Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

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

Gets the supplied expression matches the type's constructor.
public getConstructor ( NewExpression $expression ) : Pinq\Analysis\IConstructor
$expression Pinq\Expressions\NewExpression
Результат Pinq\Analysis\IConstructor

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

Gets the matched field of the supplied expression.
public getField ( FieldExpression $expression ) : Pinq\Analysis\IField
$expression Pinq\Expressions\FieldExpression
Результат Pinq\Analysis\IField

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

Gets a unique string representation of the type.
public getIdentifier ( ) : string
Результат string

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

Get the supplied index expression matches the type.
public getIndex ( IndexExpression $expression ) : Pinq\Analysis\ITypeOperation
$expression Pinq\Expressions\IndexExpression
Результат Pinq\Analysis\ITypeOperation

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

Gets the invocation expression matches the type.
public getInvocation ( InvocationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\InvocationExpression
Результат Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

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

Gets the matched method of the supplied expression.
public getMethod ( MethodCallExpression $expression ) : Pinq\Analysis\IMethod
$expression Pinq\Expressions\MethodCallExpression
Результат Pinq\Analysis\IMethod

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

Gets the parent type or null if their is no parent.
public getParentType ( ) : Pinq\Analysis\IType | null
Результат Pinq\Analysis\IType | null

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

Gets the matched field of the supplied expression.
public getStaticField ( StaticFieldExpression $expression ) : Pinq\Analysis\IField
$expression Pinq\Expressions\StaticFieldExpression
Результат Pinq\Analysis\IField

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

Gets the matched method of the supplied expression.
public getStaticMethod ( StaticMethodCallExpression $expression ) : Pinq\Analysis\IMethod
$expression Pinq\Expressions\StaticMethodCallExpression
Результат Pinq\Analysis\IMethod

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

Gets the matched unary operator from the supplied expression.
public getUnaryOperation ( UnaryOperationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\UnaryOperationExpression
Результат Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

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

Whether the type has a parent type.
public hasParentType ( ) : boolean
Результат boolean

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

Whether the supplied type is equivalent to the current type.
public isEqualTo ( Pinq\Analysis\IType $type ) : boolean
$type Pinq\Analysis\IType
Результат boolean

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

Whether the supplied type is a subtype of or equal to the current type.
public isParentTypeOf ( Pinq\Analysis\IType $type ) : boolean
$type Pinq\Analysis\IType
Результат boolean