C# Class IronPython.Runtime.Binding.Binders

Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
BinaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
Convert ( Expression codeContext, PythonContext binder, Type type, ConversionResultKind resultKind, Expression target ) : Expression

Backwards compatible Convert for the old sites that need to flow CodeContext

Get ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
InvokeKeywords ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder

Creates a new InvokeBinder which will call with positional and keyword splatting. The signature of the target site should be object(function), object[], dictionary, retType

InvokeSplat ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder

Creates a new InvokeBinder which will call with positional splatting. The signature of the target site should be object(function), object[], retType

TryGet ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
UnaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder

Private Methods

Méthode Description
GetExpressionTypeFromBinaryOperator ( PythonOperationKind operatorName ) : ExpressionType?
GetExpressionTypeFromUnaryOperator ( PythonOperationKind operatorName ) : ExpressionType?

Method Details

BinaryOperationBinder() public static méthode

public static BinaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
state PythonContext
operatorName PythonOperationKind
Résultat System.Dynamic.DynamicMetaObjectBinder

Convert() public static méthode

Backwards compatible Convert for the old sites that need to flow CodeContext
public static Convert ( Expression codeContext, PythonContext binder, Type type, ConversionResultKind resultKind, Expression target ) : Expression
codeContext Expression
binder PythonContext
type System.Type
resultKind ConversionResultKind
target Expression
Résultat Expression

Get() public static méthode

public static Get ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
codeContext Expression
binder PythonContext
resultType System.Type
name string
target Expression
Résultat Expression

InvokeKeywords() public static méthode

Creates a new InvokeBinder which will call with positional and keyword splatting. The signature of the target site should be object(function), object[], dictionary, retType
public static InvokeKeywords ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder
state PythonContext
Résultat IronPython.Runtime.Binding.PythonInvokeBinder

InvokeSplat() public static méthode

Creates a new InvokeBinder which will call with positional splatting. The signature of the target site should be object(function), object[], retType
public static InvokeSplat ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder
state PythonContext
Résultat IronPython.Runtime.Binding.PythonInvokeBinder

TryGet() public static méthode

public static TryGet ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
codeContext Expression
binder PythonContext
resultType System.Type
name string
target Expression
Résultat Expression

UnaryOperationBinder() public static méthode

public static UnaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
state PythonContext
operatorName PythonOperationKind
Résultat System.Dynamic.DynamicMetaObjectBinder