public IronPythonConstructorFunction(IronPythonInterpreter interpreter, ObjectIdentityHandle[] infos, IPythonType type) { _interpreter = interpreter; _interpreter.UnloadingDomain += Interpreter_UnloadingDomain; _remote = _interpreter.Remote; _infos = infos; _type = type; }
public IronPythonConstructorFunctionTarget(IronPythonInterpreter interpreter, ObjectIdentityHandle overload, IronPythonType declType) { Debug.Assert(interpreter.Remote.TypeIs<MethodBase>(overload)); _interpreter = interpreter; _interpreter.UnloadingDomain += Interpreter_UnloadingDomain; _remote = _interpreter.Remote; _overload = overload; _declaringType = declType; }
public IronPythonEvent(IronPythonInterpreter interpreter, ObjectIdentityHandle eventObj) : base(interpreter, eventObj) { }
internal ObjectKind GetObjectKind(ObjectIdentityHandle obj) { return(_remoteInterpreter.GetObjectKind(obj)); }
public PythonObject(IronPythonInterpreter interpreter, ObjectIdentityHandle obj) { _interpreter = interpreter; _interpreter.UnloadingDomain += Interpreter_UnloadingDomain; _remote = _interpreter.Remote; _obj = obj; }
private static readonly string _noDefaultValue = "<No Default Value>"; // sentinel value to mark when an object doesn't have a default value public IronPythonParameterInfo(IronPythonInterpreter interpreter, ObjectIdentityHandle parameterInfo) { _interpreter = interpreter; _interpreter.UnloadingDomain += Interpreter_UnloadingDomain; _remote = _interpreter.Remote; _parameterInfo = parameterInfo; }
public IronPythonConstant(IronPythonInterpreter interpreter, ObjectIdentityHandle value) : base(interpreter, value) { }
public IronPythonGenericMember(IronPythonInterpreter interpreter, ObjectIdentityHandle obj, PythonMemberType type) : base(interpreter, obj) { _type = type; }
internal ObjectIdentityHandle GetPythonTypeElementType(ObjectIdentityHandle value) { return(_remoteInterpreter.GetPythonTypeElementType(value)); }
internal bool IsPythonTypeArray(ObjectIdentityHandle value) { return(_remoteInterpreter.IsPythonTypeArray(value)); }
internal string GetTypeDeclaringModule(ObjectIdentityHandle value) { return(_remoteInterpreter.GetTypeDeclaringModule(value)); }
internal ObjectIdentityHandle[] GetPythonTypeMro(ObjectIdentityHandle value) { return(_remoteInterpreter.GetPythonTypeMro(value)); }
internal BuiltinTypeId PythonTypeGetBuiltinTypeId(ObjectIdentityHandle value) { return(_remoteInterpreter.PythonTypeGetBuiltinTypeId(value)); }
internal ObjectIdentityHandle[] GetPythonTypeConstructors(ObjectIdentityHandle value) { return(_remoteInterpreter.GetPythonTypeConstructors(value)); }
internal bool PythonTypeHasNewOrInitMethods(ObjectIdentityHandle value) { return(_remoteInterpreter.PythonTypeHasNewOrInitMethods(value)); }
public IronPythonBuiltinModule(IronPythonInterpreter interpreter, ObjectIdentityHandle mod, string name) : base(interpreter, mod, name) { }
internal bool IsDelegateType(ObjectIdentityHandle value) { return(_remoteInterpreter.IsDelegateType(value)); }
public IronPythonBuiltinFunctionTarget(IronPythonInterpreter interpreter, ObjectIdentityHandle overload, IronPythonType declType) { Debug.Assert(interpreter.Remote.TypeIs<MethodBase>(overload)); _interpreter = interpreter; _overload = overload; _declaringType = declType; }
internal bool IsPythonTypeGenericTypeDefinition(ObjectIdentityHandle value) { return(_remoteInterpreter.IsPythonTypeGenericTypeDefinition(value)); }
internal IMember MakeObject(ObjectIdentityHandle obj) { if (obj.IsNull) { return null; } lock (this) { IMember res; if (_members.TryGetValue(obj, out res)) { return res; } switch (_remote.GetObjectKind(obj)) { case ObjectKind.Module: res = new IronPythonModule(this, obj); break; case ObjectKind.Type: res = new IronPythonType(this, obj); break; case ObjectKind.BuiltinFunction: res = new IronPythonBuiltinFunction(this, obj); break; case ObjectKind.BuiltinMethodDesc: res = new IronPythonBuiltinMethodDescriptor(this, obj); break; case ObjectKind.ReflectedEvent: res = new IronPythonEvent(this, obj); break; case ObjectKind.ReflectedExtensionProperty: res = new IronPythonExtensionProperty(this, obj); break; case ObjectKind.ReflectedField: res = new IronPythonField(this, obj); break; case ObjectKind.ReflectedProperty: res = new IronPythonProperty(this, obj); break; case ObjectKind.TypeGroup: res = new IronPythonTypeGroup(this, obj); break; case ObjectKind.NamespaceTracker: res = new IronPythonNamespace(this, obj); break; case ObjectKind.Constant: res = new IronPythonConstant(this, obj); break; case ObjectKind.ClassMethod: res = new IronPythonGenericMember(this, obj, PythonMemberType.Method); break; case ObjectKind.Method: res = res = new IronPythonGenericMember(this, obj, PythonMemberType.Method); break; case ObjectKind.PythonTypeSlot: res = new IronPythonGenericMember(this, obj, PythonMemberType.Property); break; case ObjectKind.PythonTypeTypeSlot: res = new IronPythonGenericMember(this, obj, PythonMemberType.Property); break; case ObjectKind.Unknown: res = new PythonObject(this, obj); break; default: throw new InvalidOperationException(); } _members[obj] = res; return res; } }
internal string GetBuiltinFunctionDocumentation(ObjectIdentityHandle value) { return(_remoteInterpreter.GetBuiltinFunctionDocumentation(value)); }
public IronPythonModule(IronPythonInterpreter interpreter, ObjectIdentityHandle mod, string name = null) : base(interpreter, mod) { _name = name; }
internal ObjectIdentityHandle[] GetBuiltinFunctionOverloads(ObjectIdentityHandle value) { return(_remoteInterpreter.GetBuiltinFunctionOverloads(value)); }
public IronPythonTypeGroup(IronPythonInterpreter interpreter, ObjectIdentityHandle type) : base(interpreter, type) { }
internal ObjectIdentityHandle[] GetConstructorFunctionTargets(ObjectIdentityHandle function) { return(_remoteInterpreter.GetConstructorFunctionTargets(function)); }
internal string GetFieldDocumentation(ObjectIdentityHandle value) { return(_remoteInterpreter.GetFieldDocumentation(value)); }
internal ObjectIdentityHandle GetConstructorFunctionDeclaringType(ObjectIdentityHandle function) { return(_remoteInterpreter.GetConstructorFunctionDeclaringType(function)); }
public IronPythonBuiltinFunction(IronPythonInterpreter interpreter, ObjectIdentityHandle function) : base(interpreter, function) { }
internal ObjectIdentityHandle GetBuiltinFunctionDeclaringPythonType(ObjectIdentityHandle value) { return(_remoteInterpreter.GetBuiltinFunctionDeclaringPythonType(value)); }
public IronPythonNamespace(IronPythonInterpreter interpreter, ObjectIdentityHandle ns) : base(interpreter, ns) { }
internal string GetBuiltinFunctionModule(ObjectIdentityHandle value) { return(_remoteInterpreter.GetBuiltinFunctionModule(value)); }
public PythonObject(IronPythonInterpreter interpreter, ObjectIdentityHandle obj) { _interpreter = interpreter; _obj = obj; }
internal string GetTypeGroupName(ObjectIdentityHandle value) { return(_remoteInterpreter.GetTypeGroupName(value)); }
internal PythonMemberType GetTypeGroupMemberType(ObjectIdentityHandle value) { return(_remoteInterpreter.GetTypeGroupMemberType(value)); }
public IronPythonProperty(IronPythonInterpreter interpreter, ObjectIdentityHandle property) : base(interpreter, property) { }
internal ObjectIdentityHandle[] GetTypeGroupEventInvokeArgs(ObjectIdentityHandle value) { return(_remoteInterpreter.GetTypeGroupEventInvokeArgs(value)); }
internal ObjectIdentityHandle PythonTypeMakeGenericType(ObjectIdentityHandle value, ObjectIdentityHandle[] types) { return(_remoteInterpreter.PythonTypeMakeGenericType(value, types)); }
internal ObjectIdentityHandle[] GetTypeGroupConstructors(ObjectIdentityHandle value, out ObjectIdentityHandle declType) { return(_remoteInterpreter.GetTypeGroupConstructors(value, out declType)); }
internal IPythonType GetTypeFromType(ObjectIdentityHandle type) { if (type.IsNull) { return null; } lock (this) { IMember res; if (!_members.TryGetValue(type, out res)) { _members[type] = res = new IronPythonType(this, type); } return res as IPythonType; } }
internal ObjectIdentityHandle TypeGroupMakeGenericType(ObjectIdentityHandle value, ObjectIdentityHandle[] types) { return(_remoteInterpreter.TypeGroupMakeGenericType(value, types)); }
internal bool?TypeGroupIsGenericTypeDefinition(ObjectIdentityHandle value) { return(_remoteInterpreter.TypeGroupIsGenericTypeDefinition(value)); }
public IronPythonConstructorFunction(IronPythonInterpreter interpreter, ObjectIdentityHandle[] infos, IPythonType type) { _interpreter = interpreter; _infos = infos; _type = type; }
internal IEnumerable <string> GetNamespaceChildren(ObjectIdentityHandle value) { return(_remoteInterpreter.GetNamespaceChildren(value)); }
public IronPythonBuiltinMethodDescriptor(IronPythonInterpreter interpreter, ObjectIdentityHandle desc) : base(interpreter, desc) { }
internal ObjectIdentityHandle[] GetEventParameterPythonTypes(ObjectIdentityHandle value) { return(_remoteInterpreter.GetEventParameterPythonTypes(value)); }
public IPythonType MakeGenericType(IPythonType[] indexTypes) { // TODO: Caching? ObjectIdentityHandle[] types = new ObjectIdentityHandle[indexTypes.Length]; for (int i = 0; i < types.Length; i++) { types[i] = ((IronPythonType)indexTypes[i]).Value; } var ri = RemoteInterpreter; return ri != null ? Interpreter.GetTypeFromType(ri.TypeGroupMakeGenericType(Value, types)) : null; }
internal bool IsFieldStatic(ObjectIdentityHandle value) { return(_remoteInterpreter.IsFieldStatic(value)); }
public IronPythonField(IronPythonInterpreter interpreter, ObjectIdentityHandle field) : base(interpreter, field) { }
private static readonly string _noDefaultValue = "<No Default Value>"; // sentinel value to mark when an object doesn't have a default value public IronPythonParameterInfo(IronPythonInterpreter interpreter, ObjectIdentityHandle parameterInfo) { _interpreter = interpreter; _parameterInfo = parameterInfo; }