Ejemplo n.º 1
0
	// Construct a JFunctionObject with the given implementation and
	// scope chain.  callImp and/or constructImp can be null if the
	// corresponding operation is undefined.
	public JFunctionObject( JFunctionImp callImp, JFunctionImp constructImp,
							object[] scopes )
	  : base(functionPrototype, null, "Function")
		{
		this.scopes        = scopes;
		this.callImp       = callImp;
		this.constructImp  = constructImp;
		this.instanceProto = null;
		} // JFunctionObject constructor
Ejemplo n.º 2
0
		} // JFunctionObject constructor
	
	
	// Construct a JFunctionObject with the given implementation and
	// no scope chain.  (This is typically used when defining built-in
	// functions that are implemented in C#.)
	public JFunctionObject(JFunctionImp callImp, JFunctionImp constructImp)
	  : this(callImp, constructImp, new object[0]) {}
Ejemplo n.º 3
0
		} // JFunctionObject constructor
	
	
	// Like the previous constructor, but allows the caller to explicitly
	// supply the prototype object for objects created using this function.
	public JFunctionObject( JFunctionImp callImp, JFunctionImp constructImp,
							object[] scopes, JObject instanceProto )
	  : this(callImp, constructImp, scopes)
		{
		this.instanceProto = instanceProto;
		} // JFunctionObject constructor