PHP Interface Pinq\Analysis\IType

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/pinq Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getCast() public méthode

Gets the matched unary operator from the supplied expression.
public getCast ( CastExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\CastExpression
Résultat Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

getConstructor() public méthode

Gets the supplied expression matches the type's constructor.
public getConstructor ( NewExpression $expression ) : Pinq\Analysis\IConstructor
$expression Pinq\Expressions\NewExpression
Résultat Pinq\Analysis\IConstructor

getField() public méthode

Gets the matched field of the supplied expression.
public getField ( FieldExpression $expression ) : Pinq\Analysis\IField
$expression Pinq\Expressions\FieldExpression
Résultat Pinq\Analysis\IField

getIdentifier() public méthode

Gets a unique string representation of the type.
public getIdentifier ( ) : string
Résultat string

getIndex() public méthode

Get the supplied index expression matches the type.
public getIndex ( IndexExpression $expression ) : Pinq\Analysis\ITypeOperation
$expression Pinq\Expressions\IndexExpression
Résultat Pinq\Analysis\ITypeOperation

getInvocation() public méthode

Gets the invocation expression matches the type.
public getInvocation ( InvocationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\InvocationExpression
Résultat Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

getMethod() public méthode

Gets the matched method of the supplied expression.
public getMethod ( MethodCallExpression $expression ) : Pinq\Analysis\IMethod
$expression Pinq\Expressions\MethodCallExpression
Résultat Pinq\Analysis\IMethod

getParentType() public méthode

Gets the parent type or null if their is no parent.
public getParentType ( ) : Pinq\Analysis\IType | null
Résultat Pinq\Analysis\IType | null

getStaticField() public méthode

Gets the matched field of the supplied expression.
public getStaticField ( StaticFieldExpression $expression ) : Pinq\Analysis\IField
$expression Pinq\Expressions\StaticFieldExpression
Résultat Pinq\Analysis\IField

getStaticMethod() public méthode

Gets the matched method of the supplied expression.
public getStaticMethod ( StaticMethodCallExpression $expression ) : Pinq\Analysis\IMethod
$expression Pinq\Expressions\StaticMethodCallExpression
Résultat Pinq\Analysis\IMethod

getUnaryOperation() public méthode

Gets the matched unary operator from the supplied expression.
public getUnaryOperation ( UnaryOperationExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\UnaryOperationExpression
Résultat Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod

hasParentType() public méthode

Whether the type has a parent type.
public hasParentType ( ) : boolean
Résultat boolean

isEqualTo() public méthode

Whether the supplied type is equivalent to the current type.
public isEqualTo ( Pinq\Analysis\IType $type ) : boolean
$type Pinq\Analysis\IType
Résultat boolean

isParentTypeOf() public méthode

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
Résultat boolean