C# Класс Rhino.NativeFunction

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

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

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

Защищенные методы

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

Приватные методы

Метод Описание
Decompile ( int indent, int flags ) : string
JsGet_name ( ) : string

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

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

public GetArity ( ) : int
Результат int

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

public GetDebuggableView ( ) : DebuggableScript
Результат DebuggableScript

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

Get encoded source string.
Get encoded source string.
public GetEncodedSource ( ) : string
Результат string

GetLanguageVersion() защищенный абстрактный Метод

protected abstract GetLanguageVersion ( ) : int
Результат int

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

public GetLength ( ) : int
Результат int

GetParamAndVarCount() защищенный абстрактный Метод

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

GetParamCount() защищенный абстрактный Метод

Get number of declared parameters.
Get number of declared parameters. It should be 0 for scripts.
protected abstract GetParamCount ( ) : int
Результат int

GetParamOrVarConst() защищенный Метод

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

GetParamOrVarName() защищенный абстрактный Метод

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

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

public InitScriptFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
Результат void

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

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