C# Class Jint.Native.JsFunction

Inheritance: JsObject
Show file Open project: splhack/unity-jint Class Usage Examples

Public Properties

Property Type Description
APPLY string
CALL string
CONSTRUCTOR string
PROTOTYPE string

Public Methods

Method Description
Construct ( JsInstance parameters, Type genericArgs, IJintVisitor visitor ) : JsObject
Execute ( IJintVisitor visitor, JsDictionaryObject that, JsInstance parameters ) : JsInstance
Execute ( IJintVisitor visitor, JsDictionaryObject that, JsInstance parameters, Type genericArguments ) : JsInstance
GetBody ( ) : string
HasInstance ( JsObject inst ) : bool
JsFunction ( IGlobal global ) : System

JsFunction ( IGlobal global, Statement statement ) : System
JsFunction ( JsObject prototype ) : System

Init new function object with a specified prototype

ToBoolean ( ) : bool
ToNumber ( ) : double
ToSource ( ) : string
ToString ( ) : string

Method Details

Construct() public method

public Construct ( JsInstance parameters, Type genericArgs, IJintVisitor visitor ) : JsObject
parameters JsInstance
genericArgs System.Type
visitor IJintVisitor
return JsObject

Execute() public method

public Execute ( IJintVisitor visitor, JsDictionaryObject that, JsInstance parameters ) : JsInstance
visitor IJintVisitor
that JsDictionaryObject
parameters JsInstance
return JsInstance

Execute() public method

public Execute ( IJintVisitor visitor, JsDictionaryObject that, JsInstance parameters, Type genericArguments ) : JsInstance
visitor IJintVisitor
that JsDictionaryObject
parameters JsInstance
genericArguments System.Type
return JsInstance

GetBody() public method

public GetBody ( ) : string
return string

HasInstance() public method

public HasInstance ( JsObject inst ) : bool
inst JsObject
return bool

JsFunction() public method

public JsFunction ( IGlobal global ) : System
global IGlobal
return System

JsFunction() public method

public JsFunction ( IGlobal global, Statement statement ) : System
global IGlobal
statement Jint.Expressions.Statement
return System

JsFunction() public method

Init new function object with a specified prototype
public JsFunction ( JsObject prototype ) : System
prototype JsObject prototype for this object
return System

ToBoolean() public method

public ToBoolean ( ) : bool
return bool

ToNumber() public method

public ToNumber ( ) : double
return double

ToSource() public method

public ToSource ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

Property Details

APPLY public static property

public static string APPLY
return string

CALL public static property

public static string CALL
return string

CONSTRUCTOR public static property

public static string CONSTRUCTOR
return string

PROTOTYPE public static property

public static string PROTOTYPE
return string