|
Oolite
|
#include <OOJSFunction.h>
Private Attributes | |
| JSFunction * | _function |
| NSString * | _name |
| JSValue | _function |
Definition at line 31 of file OOJSFunction.h.
|
implementation |
Definition at line 128 of file OOJSFunction.m.
References _name, dealloc, deleteJSValue, and DESTROY.
Referenced by dealloc.
|
implementation |
Definition at line 114 of file OOJSFunction.m.
References _function, deleteJSValue, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJavaScriptEngine::sharedEngine.
Referenced by dealloc, and deleteJSValue.
|
implementation |
Definition at line 136 of file OOJSFunction.m.
References descriptionComponents, name, and nil.
Referenced by descriptionComponents.
| - (BOOL) evaluatePredicateWithContext: | (JSContext*) | context | |
| scope: | (id) | jsThis | |
| arguments: | (NSArray*) | arguments |
Definition at line 306 of file OOJSFunction.m.
References evaluateWithContext:scope:arguments:result:, and OOJSReportPendingException().
Referenced by OORegExpMatcher::string:matchesExpression:flags:.
| - (BOOL) evaluatePredicateWithContext: | (JSContext *) | context | |
| scope: | (id) | jsThis | |
| arguments: | (NSArray *) | arguments |
| - (BOOL) evaluateWithContext: | (JSContext*) | context | |
| scope: | (JSObject*) | jsThis | |
| argc: | (uintN) | argc | |
| argv: | (jsval*) | argv | |
| result: | (jsval*) | result |
Definition at line 202 of file OOJSFunction.m.
References _function, EXPECT_NOT, isValid, OOJSStartTimeLimiter, OOJSStopTimeLimiter, OOJSScript::popScript:, and OOJSScript::pushScript:.
Referenced by evaluateWithContext:scope:arguments:result:, and evaluateWithContext:scope:arguments:result:.
| - (BOOL) evaluateWithContext: | (JSContext*) | context | |
| scope: | (JSValueConst) | jsThis | |
| argc: | (int) | argc | |
| argv: | (JSValueConst*) | argv | |
| result: | (JSValue*) | result |
Definition at line 202 of file OOJSFunction.m.
| - (id) evaluateWithContext: | (JSContext*) | context | |
| scope: | (id) | jsThis | |
| arguments: | (NSArray*) | arguments |
Definition at line 289 of file OOJSFunction.m.
References evaluateWithContext:scope:arguments:result:, nil, and OOJSNativeObjectFromJSValue().
| - (id) evaluateWithContext: | (JSContext *) | context | |
| scope: | (id) | jsThis | |
| arguments: | (NSArray *) | arguments |
|
implementation |
Definition at line 179 of file OOJSFunction.m.
References evaluateWithContext:scope:argc:argv:result:, nil, and OOJSAddGCValueRoot.
Referenced by evaluatePredicateWithContext:scope:arguments:, and evaluateWithContext:scope:arguments:.
|
implementation |
Definition at line 239 of file OOJSFunction.m.
References evaluateWithContext:scope:argc:argv:result:, nil, and OOJSReportPendingException().
| - (JSValueConst) function |
| - (JSValueConst) function |
| - (JSValue) functionValue |
Definition at line 193 of file OOJSFunction.m.
References _function, EXPECT, functionValue, isValid, and OOJSAcquireContext().
Referenced by functionValue.
| - (JSValue) functionValue |
| - (id) initWithFunction: | (JSFunction*) | function | |
| context: | (JSContext*) | context |
Definition at line 32 of file OOJSFunction.m.
References _function, _name, name, nil, OOStringFromJSValue(), and OOJavaScriptEngine::sharedEngine.
Referenced by initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:.
| - (id) initWithFunction: | (JSValueConst) | function | |
| context: | (JSContext*) | context |
Definition at line 32 of file OOJSFunction.m.
| - (id) initWithName: | (NSString*) | name | |
| scope: | (JSObject*) | scope | |
| code: | (NSString*) | code | |
| argumentCount: | (NSUInteger) | argCount | |
| argumentNames: | (const char**) | argNames | |
| fileName: | (NSString*) | fileName | |
| lineNumber: | (NSUInteger) | lineNumber | |
| context: | (JSContext*) | context |
Definition at line 64 of file OOJSFunction.m.
References DESTROY, initWithFunction:context:, int(), name, nil, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJSReportPendingException().
| - (id) initWithName: | (NSString*) | name | |
| scope: | (JSValueConst) | scope | |
| code: | (NSString*) | code | |
| argumentCount: | (NSUInteger) | argCount | |
| argumentNames: | (const char**) | argNames | |
| fileName: | (NSString*) | fileName | |
| lineNumber: | (NSUInteger) | lineNumber | |
| context: | (JSContext*) | context |
Definition at line 64 of file OOJSFunction.m.
|
implementation |
Definition at line 182 of file OOJSFunction.m.
References _function, and isValid.
Referenced by evaluateWithContext:scope:argc:argv:result:, function, functionValue, and isValid.
| - (NSString *) name |
Definition at line 177 of file OOJSFunction.m.
Referenced by descriptionComponents, initWithFunction:context:, initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:, and name.
| - (NSString *) name |
|
private |
Definition at line 33 of file OOJSFunction.h.
Referenced by deleteJSValue, evaluateWithContext:scope:argc:argv:result:, function, functionValue, initWithFunction:context:, and isValid.
|
private |
Definition at line 33 of file OOJSFunction.h.
|
private |
Definition at line 34 of file OOJSFunction.h.
Referenced by dealloc, initWithFunction:context:, and name.