PHP Interface Pinq\Analysis\IType

Author: Elliot Levin ([email protected])
显示文件 Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method 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 method

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

getConstructor() public method

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

getField() public method

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

getIdentifier() public method

Gets a unique string representation of the type.
public getIdentifier ( ) : string
return string

getIndex() public method

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

getInvocation() public method

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

getMethod() public method

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

getParentType() public method

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

getStaticField() public method

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

getStaticMethod() public method

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

getUnaryOperation() public method

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

hasParentType() public method

Whether the type has a parent type.
public hasParentType ( ) : boolean
return boolean

isEqualTo() public method

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

isParentTypeOf() public method

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
return boolean