C# Class Rhino.TopLevel

Inheritance: IdScriptableObject
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

GetBuiltinCtor() public méthode

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
Résultat BaseFunction

GetBuiltinCtor() public static méthode

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
Résultat Function

GetBuiltinPrototype() public static méthode

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
Résultat Scriptable

GetBuiltinPrototype() public méthode

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
Résultat Scriptable

GetClassName() public méthode

public GetClassName ( ) : string
Résultat string