C# Class Rhino.InterpretedFunction

Inheritance: NativeFunction, System.Script
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object

Calls the function.

Calls the function.

Exec ( Context cx, Scriptable scope ) : object
GetDebuggableView ( ) : DebuggableScript
GetEncodedSource ( ) : string
GetFunctionName ( ) : string
IsScript ( ) : bool
ResumeGenerator ( Context cx, Scriptable scope, int operation, object state, object value ) : object

Protected Methods

Method Description
GetLanguageVersion ( ) : int
GetParamAndVarCount ( ) : int
GetParamCount ( ) : int
GetParamOrVarConst ( int index ) : bool
GetParamOrVarName ( int index ) : string

Private Methods

Method Description
CreateFunction ( Context cx, Scriptable scope, InterpreterData idata, object staticSecurityDomain ) : InterpretedFunction

Create function compiled from Function(...) constructor.

Create function compiled from Function(...) constructor.

CreateFunction ( Context cx, Scriptable scope, Rhino parent, int index ) : InterpretedFunction

Create function embedded in script or another function.

Create function embedded in script or another function.

CreateScript ( InterpreterData idata, object staticSecurityDomain ) : InterpretedFunction

Create script from compiled bytecode.

Create script from compiled bytecode.

InterpretedFunction ( InterpreterData idata, object staticSecurityDomain ) : System
InterpretedFunction ( Rhino parent, int index ) : System

Method Details

Call() public method

Calls the function.
Calls the function.
public Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
cx Context the current context
scope Scriptable the scope used for the call
thisObj Scriptable the value of "this"
args object /// function arguments. Must not be null. You can use /// ScriptRuntime.emptyArgs /// to pass empty arguments. ///
return object

Exec() public method

public Exec ( Context cx, Scriptable scope ) : object
cx Context
scope Scriptable
return object

GetDebuggableView() public method

public GetDebuggableView ( ) : DebuggableScript
return DebuggableScript

GetEncodedSource() public method

public GetEncodedSource ( ) : string
return string

GetFunctionName() public method

public GetFunctionName ( ) : string
return string

GetLanguageVersion() protected method

protected GetLanguageVersion ( ) : int
return int

GetParamAndVarCount() protected method

protected GetParamAndVarCount ( ) : int
return int

GetParamCount() protected method

protected GetParamCount ( ) : int
return int

GetParamOrVarConst() protected method

protected GetParamOrVarConst ( int index ) : bool
index int
return bool

GetParamOrVarName() protected method

protected GetParamOrVarName ( int index ) : string
index int
return string

IsScript() public method

public IsScript ( ) : bool
return bool

ResumeGenerator() public method

public ResumeGenerator ( Context cx, Scriptable scope, int operation, object state, object value ) : object
cx Context
scope Scriptable
operation int
state object
value object
return object