C# Класс Rhino.TopLevel

Наследование: IdScriptableObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CacheBuiltins() публичный Метод

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
Результат void

GetBuiltinCtor() публичный Метод

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
Результат BaseFunction

GetBuiltinCtor() публичный статический Метод

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
Результат Function

GetBuiltinPrototype() публичный статический Метод

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
Результат Scriptable

GetBuiltinPrototype() публичный Метод

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
Результат Scriptable

GetClassName() публичный Метод

public GetClassName ( ) : string
Результат string