Méthode | Description | |
---|---|---|
GetNewType ( string typeName, PythonTuple bases ) : |
||
IsInstanceType ( |
Is this a type used for instances Python types (and not for the types themselves)?
|
|
LoadNewTypes ( |
Loads any available new types from the provided assembly and makes them available via the GetNewType API.
|
|
SaveNewTypes ( string assemblyName, IList |
Méthode | Description | |
---|---|---|
AddBaseMethods ( |
||
AddDebugView ( ) : void | ||
AddPropertyInfo ( |
||
AddPublicProperty ( |
||
CallBaseConstructor ( |
||
CanOverrideMethod ( |
||
CreateNewType ( ) : |
||
CreateSuperCallHelper ( |
Creates a method for doing a base method dispatch. This is used to support super(type, obj) calls.
|
|
CreateVTableEventOverride ( |
||
CreateVTableGetterOverride ( |
||
CreateVTableMethodOverride ( |
||
CreateVTableSetterOverride ( |
||
DefineExplicitInterfaceImplementation ( |
||
DefineHelperInterface ( |
Defines an interface on the type that forwards all calls to a helper method in UserType. The method names all will have Helper appended to them to get the name for UserType. The UserType version should take 1 extra parameter (self).
|
|
DefineInterfaces ( ) : void | ||
DefineMethodOverride ( MethodAttributes extra, |
||
DefineMethodOverride ( MethodAttributes extra, |
||
DefineMethodOverride ( |
||
DefineVTableMethodOverride ( |
||
DoInterfaceType ( |
||
EmitBaseClassCallCheckForEvents ( ILGen il, |
Emits code to check if the class has overridden this specific function. For example: MyDerivedType.SomeVirtualFunction = ... or class MyDerivedType(MyBaseType): def SomeVirtualFunction(self, ...):
|
|
EmitBaseClassCallCheckForProperties ( ILGen il, |
Emits code to check if the class has overridden this specific function. For example: MyDerivedType.SomeVirtualFunction = ... or class MyDerivedType(MyBaseType): def SomeVirtualFunction(self, ...):
|
|
EmitBaseMethodDispatch ( |
Loads all the incoming arguments and forwards them to mi which has the same signature and then returns the result
|
|
EmitClrCallStub ( ILGen il, |
Generates stub to receive the CLR call and then call the dynamic language code. This code is same as StubGenerator.cs in the Microsoft.Scripting, except it accepts ILGen instead of Compiler.
|
|
EmitCodeContext ( ILGen il, bool context ) : void | ||
EmitConvertFromObject ( ILGen il, |
Emit code to convert object to a given type. This code is semantically equivalent to PythonBinder.EmitConvertFromObject, except this version accepts ILGen whereas PythonBinder accepts Compiler. The Binder will chagne soon and the two will merge.
|
|
EmitGetDict ( ILGen gen ) : void | ||
EmitInt ( |
||
EmitNonInheritedMethodLookup ( string name, ILGen il ) : |
Emits the call to lookup a member defined in the user's type. Returns the local which stores the resulting value and leaves a value on the stack indicating the success of the lookup.
|
|
EmitSetDict ( ILGen gen ) : void | ||
FinishType ( ) : |
||
GetBaseName ( |
||
GetBaseTypeForMethod ( |
||
GetCCtor ( ) : ILGen | ||
GetName ( ) : string | ||
GetOriginalIndex ( |
Gets the position for the parameter which we are overriding.
|
|
GetOverriddenMethods ( |
Called from PythonTypeOps - the BuiltinFunction._function lock must be held.
|
|
GetOverriddenProperties ( |
||
GetOverrideCtorSignature ( |
||
ImplementCTDOverride ( |
||
ImplementConstructors ( ) : void | ||
ImplementCustomTypeDescriptor ( ) : void | ||
ImplementDynamicObject ( ) : void | ||
ImplementIPythonObject ( ) : void | ||
ImplementInterface ( |
||
ImplementProtectedFieldAccessors ( string[]>.Dictionary |
||
ImplementPythonEquals ( ) : void | ||
ImplementPythonObject ( ) : void | ||
ImplementType ( ) : string[]>.Dictionary |
||
ImplementWeakReference ( ) : void | ||
MakeSiteSignature ( int nargs ) : System.Type[] | ||
NewTypeMaker ( |
||
OverrideBaseMethod ( |
||
OverrideConstructor ( |
||
OverrideMethods ( |
Overrides methods - this includes all accessible virtual methods as well as protected non-virtual members including statics and non-statics.
|
|
OverrideSpecialName ( |
||
SaveType ( Microsoft.Scripting.Generation.AssemblyGen ag, string name ) : KeyValuePair |
||
StoreOverriddenField ( |
||
StoreOverriddenMethod ( |
||
StoreOverriddenProperty ( |
||
TryOverrideProperty ( |
public static GetNewType ( string typeName, PythonTuple bases ) : |
||
typeName | string | |
bases | PythonTuple | |
Résultat |
public static IsInstanceType ( |
||
type | ||
Résultat | bool |
public static LoadNewTypes ( |
||
asm | ||
Résultat | void |
public static SaveNewTypes ( string assemblyName, IList |
||
assemblyName | string | |
types | IList |
|
Résultat | void |