Rhino.ImporterTopLevel.ExecIdCall C# (CSharp) Method

ExecIdCall() public method

public ExecIdCall ( IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
f IdFunctionObject
cx Context
scope Scriptable
thisObj Scriptable
args object
return object
		public override object ExecIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, object[] args)
		{
			if (!f.HasTag(IMPORTER_TAG))
			{
				return base.ExecIdCall(f, cx, scope, thisObj, args);
			}
			int id = f.MethodId();
			switch (id)
			{
				case Id_constructor:
				{
					return Js_construct(scope, args);
				}

				case Id_importClass:
				{
					return RealThis(thisObj, f).Js_importClass(args);
				}

				case Id_importPackage:
				{
					return RealThis(thisObj, f).Js_importPackage(args);
				}
			}
			throw new ArgumentException(id.ToString());
		}