C# Class Rhino.TopLevel

Inheritance: IdScriptableObject
Mostra file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
CacheBuiltins ( ) : void

Cache the built-in ECMAScript objects to protect them against modifications by the script.

Cache the built-in ECMAScript objects to protect them against modifications by the script. This method is called automatically by ScriptRuntime.initStandardObjects if the scope argument is an instance of this class. It only has to be called by the embedding if a top-level scope is not initialized through initStandardObjects().

GetBuiltinCtor ( TopLevel type ) : BaseFunction

Get the cached built-in object constructor from this scope with the given type.

Get the cached built-in object constructor from this scope with the given type. Returns null if CacheBuiltins() has not been called on this object.

GetBuiltinCtor ( Context cx, Scriptable scope, TopLevel type ) : Function

Static helper method to get a built-in object constructor with the given type from the given scope.

Static helper method to get a built-in object constructor with the given type from the given scope. If the scope is not an instance of this class or does have a cache of built-ins, the constructor is looked up via normal property lookup.

GetBuiltinPrototype ( Scriptable scope, TopLevel type ) : Scriptable

Static helper method to get a built-in object prototype with the given type from the given scope.

Static helper method to get a built-in object prototype with the given type from the given scope. If the scope is not an instance of this class or does have a cache of built-ins, the prototype is looked up via normal property lookup.

GetBuiltinPrototype ( TopLevel type ) : Scriptable

Get the cached built-in object prototype from this scope with the given type.

Get the cached built-in object prototype from this scope with the given type. Returns null if CacheBuiltins() has not been called on this object.

GetClassName ( ) : string

Method Details

CacheBuiltins() public method

Cache the built-in ECMAScript objects to protect them against modifications by the script.
Cache the built-in ECMAScript objects to protect them against modifications by the script. This method is called automatically by ScriptRuntime.initStandardObjects if the scope argument is an instance of this class. It only has to be called by the embedding if a top-level scope is not initialized through initStandardObjects().
public CacheBuiltins ( ) : void
return void

GetBuiltinCtor() public method

Get the cached built-in object constructor from this scope with the given type.
Get the cached built-in object constructor from this scope with the given type. Returns null if CacheBuiltins() has not been called on this object.
public GetBuiltinCtor ( TopLevel type ) : BaseFunction
type TopLevel the built-in type
return BaseFunction

GetBuiltinCtor() public static method

Static helper method to get a built-in object constructor with the given type from the given scope.
Static helper method to get a built-in object constructor with the given type from the given scope. If the scope is not an instance of this class or does have a cache of built-ins, the constructor is looked up via normal property lookup.
public static GetBuiltinCtor ( Context cx, Scriptable scope, TopLevel type ) : Function
cx Context the current Context
scope Scriptable the top-level scope
type TopLevel the built-in type
return Function

GetBuiltinPrototype() public static method

Static helper method to get a built-in object prototype with the given type from the given scope.
Static helper method to get a built-in object prototype with the given type from the given scope. If the scope is not an instance of this class or does have a cache of built-ins, the prototype is looked up via normal property lookup.
public static GetBuiltinPrototype ( Scriptable scope, TopLevel type ) : Scriptable
scope Scriptable the top-level scope
type TopLevel the built-in type
return Scriptable

GetBuiltinPrototype() public method

Get the cached built-in object prototype from this scope with the given type.
Get the cached built-in object prototype from this scope with the given type. Returns null if CacheBuiltins() has not been called on this object.
public GetBuiltinPrototype ( TopLevel type ) : Scriptable
type TopLevel the built-in type
return Scriptable

GetClassName() public method

public GetClassName ( ) : string
return string