C# Class Rhino.Xml.XMLObject

Inheritance: Rhino.IdScriptableObject
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
AddValues ( Context cx, bool thisIsLeft, object value ) : object

Custom + operator.

Custom + operator. Should return Rhino.Scriptable.NOT_FOUND if this object does not have custom addition operator for the given value, or the result of the addition operation.

The default implementation returns Rhino.Scriptable.NOT_FOUND to indicate no custom addition operation.

Delete ( Context cx, object id ) : bool

Implementation of ECMAScript [[Delete]].

Implementation of ECMAScript [[Delete]].

EnterDotQuery ( Scriptable scope ) : NativeWith

Wrap this object into NativeWith to implement the .() query.

Wrap this object into NativeWith to implement the .() query.

EnterWith ( Scriptable scope ) : NativeWith

Wrap this object into NativeWith to implement the with statement.

Wrap this object into NativeWith to implement the with statement.

Get ( Context cx, object id ) : object

Implementation of ECMAScript [[Get]].

Implementation of ECMAScript [[Get]].

GetExtraMethodSource ( Context cx ) : Scriptable

Return an additional object to look for methods that runtime should consider during method search.

Return an additional object to look for methods that runtime should consider during method search. Return null if no such object available.

GetFunctionProperty ( Context cx, int id ) : object
GetFunctionProperty ( Context cx, string name ) : object
GetTypeOf ( ) : string

Gets the value returned by calling the typeof operator on this object.

Gets the value returned by calling the typeof operator on this object.

Has ( Context cx, object id ) : bool

Implementation of ECMAScript [[Has]].

Implementation of ECMAScript [[Has]].

MemberRef ( Context cx, object elem, int memberTypeFlags ) : Ref

Generic reference to implement x.@y, x..y etc.

Generic reference to implement x.@y, x..y etc.

MemberRef ( Context cx, object @namespace, object elem, int memberTypeFlags ) : Ref

Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.

Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.

Put ( Context cx, object id, object value ) : void

Implementation of ECMAScript [[Put]].

Implementation of ECMAScript [[Put]].

XMLObject ( ) : Rhino
XMLObject ( Scriptable scope, Scriptable prototype ) : Rhino

Method Details

AddValues() public method

Custom + operator.
Custom + operator. Should return Rhino.Scriptable.NOT_FOUND if this object does not have custom addition operator for the given value, or the result of the addition operation.

The default implementation returns Rhino.Scriptable.NOT_FOUND to indicate no custom addition operation.

public AddValues ( Context cx, bool thisIsLeft, object value ) : object
cx Rhino.Context the Context object associated with the current thread.
thisIsLeft bool /// if true, the object should calculate this + value /// if false, the object should calculate value + this. ///
value object the second argument for addition operation.
return object

Delete() public abstract method

Implementation of ECMAScript [[Delete]].
Implementation of ECMAScript [[Delete]].
public abstract Delete ( Context cx, object id ) : bool
cx Rhino.Context
id object
return bool

EnterDotQuery() public abstract method

Wrap this object into NativeWith to implement the .() query.
Wrap this object into NativeWith to implement the .() query.
public abstract EnterDotQuery ( Scriptable scope ) : NativeWith
scope Scriptable
return Rhino.NativeWith

EnterWith() public abstract method

Wrap this object into NativeWith to implement the with statement.
Wrap this object into NativeWith to implement the with statement.
public abstract EnterWith ( Scriptable scope ) : NativeWith
scope Scriptable
return Rhino.NativeWith

Get() public abstract method

Implementation of ECMAScript [[Get]].
Implementation of ECMAScript [[Get]].
public abstract Get ( Context cx, object id ) : object
cx Rhino.Context
id object
return object

GetExtraMethodSource() public abstract method

Return an additional object to look for methods that runtime should consider during method search.
Return an additional object to look for methods that runtime should consider during method search. Return null if no such object available.
public abstract GetExtraMethodSource ( Context cx ) : Scriptable
cx Rhino.Context
return Scriptable

GetFunctionProperty() public abstract method

public abstract GetFunctionProperty ( Context cx, int id ) : object
cx Rhino.Context
id int
return object

GetFunctionProperty() public abstract method

public abstract GetFunctionProperty ( Context cx, string name ) : object
cx Rhino.Context
name string
return object

GetTypeOf() public method

Gets the value returned by calling the typeof operator on this object.
Gets the value returned by calling the typeof operator on this object.
public GetTypeOf ( ) : string
return string

Has() public abstract method

Implementation of ECMAScript [[Has]].
Implementation of ECMAScript [[Has]].
public abstract Has ( Context cx, object id ) : bool
cx Rhino.Context
id object
return bool

MemberRef() public abstract method

Generic reference to implement x.@y, x..y etc.
Generic reference to implement x.@y, x..y etc.
public abstract MemberRef ( Context cx, object elem, int memberTypeFlags ) : Ref
cx Rhino.Context
elem object
memberTypeFlags int
return Rhino.Ref

MemberRef() public abstract method

Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
public abstract MemberRef ( Context cx, object @namespace, object elem, int memberTypeFlags ) : Ref
cx Rhino.Context
@namespace object
elem object
memberTypeFlags int
return Rhino.Ref

Put() public abstract method

Implementation of ECMAScript [[Put]].
Implementation of ECMAScript [[Put]].
public abstract Put ( Context cx, object id, object value ) : void
cx Rhino.Context
id object
value object
return void

XMLObject() public method

public XMLObject ( ) : Rhino
return Rhino

XMLObject() public method

public XMLObject ( Scriptable scope, Scriptable prototype ) : Rhino
scope Scriptable
prototype Scriptable
return Rhino