C# Class Rhino.NativeFunction

Inheritance: BaseFunction
Mostrar archivo Open project: hazzik/Rhino.Net

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
Decompile ( int indent, int flags ) : string
JsGet_name ( ) : string

Method Details

GetArity() public method

public GetArity ( ) : int
return int

GetDebuggableView() public method

public GetDebuggableView ( ) : DebuggableScript
return DebuggableScript

GetEncodedSource() public method

Get encoded source string.
Get encoded source string.
public GetEncodedSource ( ) : string
return string

GetLanguageVersion() protected abstract method

protected abstract GetLanguageVersion ( ) : int
return int

GetLength() public method

public GetLength ( ) : int
return int

GetParamAndVarCount() protected abstract method

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
return int

GetParamCount() protected abstract method

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

GetParamOrVarConst() protected method

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
return bool

GetParamOrVarName() protected abstract method

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
return string

InitScriptFunction() public method

public InitScriptFunction ( Context cx, Scriptable scope ) : void
cx Context
scope Scriptable
return void

ResumeGenerator() public method

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).
return object