PHP 인터페이스 Pinq\Analysis\IType

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
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