C# 클래스 Pchp.Core.Dynamic.ConvertExpression

Helper methods for converting expressions.
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 메소드들

메소드 설명
Bind ( Expression arg, Type target, Expression ctx = null ) : Expression

Creates expression that converts arg to target type.

BindCost ( Expression arg, Type target ) : Expression

Creates expression that calculates cost of conversion from arg to type target. In some cases, returned expression is a constant and can be used in compile time.

BindDefault ( Type t ) : Expression

비공개 메소드들

메소드 설명
BindAsCallable ( Expression expr ) : Expression
BindCostFromDouble ( Expression arg, Type target ) : ConversionCost
BindCostFromLong ( Expression arg, Type target ) : ConversionCost
BindCostFromNumber ( Expression arg, Type target ) : Expression
BindCostFromPhpString ( Expression arg, Type target ) : ConversionCost
BindCostFromString ( Expression arg, Type target ) : ConversionCost
BindCostFromValue ( Expression arg, Type target ) : Expression
BindToArray ( Expression expr ) : Expression
BindToBool ( Expression expr ) : Expression
BindToClass ( Expression expr ) : Expression
BindToDouble ( Expression expr ) : Expression
BindToLong ( Expression expr ) : Expression
BindToNumber ( Expression expr ) : Expression
BindToPhpString ( Expression expr, Expression ctx ) : Expression
BindToString ( Expression expr, Expression ctx ) : Expression
BindToValue ( Expression expr ) : Expression
BindToVoid ( Expression expr ) : Expression
VoidAsConstant ( Expression expr, object value, Type type ) : Expression

메소드 상세

Bind() 공개 정적인 메소드

Creates expression that converts arg to target type.
public static Bind ( Expression arg, Type target, Expression ctx = null ) : Expression
arg System.Linq.Expressions.Expression Source expression to be converted.
target System.Type Target type.
ctx System.Linq.Expressions.Expression Expression with current context.
리턴 System.Linq.Expressions.Expression

BindCost() 공개 정적인 메소드

Creates expression that calculates cost of conversion from arg to type target. In some cases, returned expression is a constant and can be used in compile time.
public static BindCost ( Expression arg, Type target ) : Expression
arg System.Linq.Expressions.Expression Expression to be converted.
target System.Type Target type.
리턴 System.Linq.Expressions.Expression

BindDefault() 공개 정적인 메소드

public static BindDefault ( Type t ) : Expression
t System.Type
리턴 System.Linq.Expressions.Expression