C# Class Rhino.NativeFunction

Inheritance: BaseFunction
Afficher le fichier Open project: hazzik/Rhino.Net

Méthodes publiques

Méthode Description
GetArity ( ) : int
GetDebuggableView ( ) : DebuggableScript
GetEncodedSource ( ) : string

Get encoded source string.

Get encoded source string.

GetLength ( ) : int
InitScriptFunction ( Context cx, Scriptable scope ) : void
ResumeGenerator ( Context cx, Scriptable scope, int operation, object state, object value ) : object

Resume execution of a suspended generator.

Resume execution of a suspended generator.

Méthodes protégées

Méthode Description
GetLanguageVersion ( ) : int
GetParamAndVarCount ( ) : int

Get number of declared parameters and variables defined through var statements.

Get number of declared parameters and variables defined through var statements.

GetParamCount ( ) : int

Get number of declared parameters.

Get number of declared parameters. It should be 0 for scripts.

GetParamOrVarConst ( int index ) : bool

Get parameter or variable const-ness.

Get parameter or variable const-ness. If index < GetParamCount() , then return the const-ness of the corresponding parameter. Otherwise return whether the variable is const.

GetParamOrVarName ( int index ) : string

Get parameter or variable name.

Get parameter or variable name. If index < GetParamCount() , then return the name of the corresponding parameter. Otherwise return the name of variable.

Private Methods

Méthode Description
Decompile ( int indent, int flags ) : string
JsGet_name ( ) : string

Method Details

GetArity() public méthode

public GetArity ( ) : int
Résultat int

GetDebuggableView() public méthode

public GetDebuggableView ( ) : DebuggableScript
Résultat DebuggableScript

GetEncodedSource() public méthode

Get encoded source string.
Get encoded source string.
public GetEncodedSource ( ) : string
Résultat string

GetLanguageVersion() protected abstract méthode

protected abstract GetLanguageVersion ( ) : int
Résultat int

GetLength() public méthode

public GetLength ( ) : int
Résultat int

GetParamAndVarCount() protected abstract méthode

Get number of declared parameters and variables defined through var statements.
Get number of declared parameters and variables defined through var statements.
protected abstract GetParamAndVarCount ( ) : int
Résultat int

GetParamCount() protected abstract méthode

Get number of declared parameters.
Get number of declared parameters. It should be 0 for scripts.
protected abstract GetParamCount ( ) : int
Résultat int

GetParamOrVarConst() protected méthode

Get parameter or variable const-ness.
Get parameter or variable const-ness. If index < GetParamCount() , then return the const-ness of the corresponding parameter. Otherwise return whether the variable is const.
protected GetParamOrVarConst ( int index ) : bool
index int
Résultat bool

GetParamOrVarName() protected abstract méthode

Get parameter or variable name.
Get parameter or variable name. If index < GetParamCount() , then return the name of the corresponding parameter. Otherwise return the name of variable.
protected abstract GetParamOrVarName ( int index ) : string
index int
Résultat string

InitScriptFunction() public méthode

public InitScriptFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
Résultat void

ResumeGenerator() public méthode

Resume execution of a suspended generator.
Resume execution of a suspended generator.
public ResumeGenerator ( Context cx, Scriptable scope, int operation, object state, object value ) : object
cx Context The current context
scope Scriptable Scope for the parent generator function
operation int The resumption operation (next, send, etc.. )
state object The generator state (has locals, stack, etc.)
value object The return value of yield (if required).
Résultat object