|
Oolite 1.91.0.7712-251017-85ce217
|
#include <OOJSFunction.h>
Instance Methods | |
| (id) | - initWithFunction:context: |
| (id) | - initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context: |
| (NSString *) | - name |
| (JSFunction *) | - function |
| (jsval) | - functionValue |
| (BOOL) | - evaluateWithContext:scope:argc:argv:result: |
| (id) | - evaluateWithContext:scope:arguments: |
| (BOOL) | - evaluatePredicateWithContext:scope:arguments: |
| (void) | - deleteJSValue [implementation] |
| (void) | - dealloc [implementation] |
| (NSString *) | - descriptionComponents [implementation] |
| (BOOL) | - evaluateWithContext:scope:arguments:result: [implementation] |
Private Attributes | |
| JSFunction * | _function |
| NSString * | _name |
Definition at line 33 of file OOJSFunction.h.
|
implementation |
Definition at line 136 of file OOJSFunction.m.
References _name, dealloc, deleteJSValue, and DESTROY.
Referenced by dealloc.
|
implementation |
Definition at line 120 of file OOJSFunction.m.
References _function, deleteJSValue, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJavaScriptEngine::sharedEngine.
Referenced by dealloc, and deleteJSValue.
|
implementation |
Definition at line 145 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 243 of file OOJSFunction.m.
References evaluateWithContext:scope:arguments:result:.
Referenced by OORegExpMatcher::string:matchesExpression:flags:.
| - (BOOL) evaluateWithContext: | (JSContext *) | context | |
| scope: | (JSObject *) | jsThis | |
| argc: | (uintN) | argc | |
| argv: | (jsval *) | argv | |
| result: | (jsval *) | result |
Definition at line 179 of file OOJSFunction.m.
References _function, OOJSStartTimeLimiter, OOJSStopTimeLimiter, OOJSScript::popScript:, and OOJSScript::pushScript:.
Referenced by evaluateWithContext:scope:arguments:result:.
| - (id) evaluateWithContext: | (JSContext *) | context | |
| scope: | (id) | jsThis | |
| arguments: | (NSArray *) | arguments |
Definition at line 228 of file OOJSFunction.m.
References evaluateWithContext:scope:arguments:result:, nil, and OOJSNativeObjectFromJSValue().
|
implementation |
Definition at line 195 of file OOJSFunction.m.
References evaluateWithContext:scope:argc:argv:result:, nil, and OOJSAddGCValueRoot.
Referenced by evaluatePredicateWithContext:scope:arguments:, and evaluateWithContext:scope:arguments:.
| - (JSFunction *) function |
| - (jsval) functionValue |
Definition at line 165 of file OOJSFunction.m.
References _function, EXPECT, and functionValue.
Referenced by functionValue.
| - (id) initWithFunction: | (JSFunction *) | function | |
| context: | (JSContext *) | context |
Definition at line 33 of file OOJSFunction.m.
References _function, _name, nil, OOJSAddGCObjectRoot, and OOJavaScriptEngine::sharedEngine.
Referenced by initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:.
| - (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 59 of file OOJSFunction.m.
References DESTROY, OOJavaScriptEngine::globalObject, initWithFunction:context:, name, nil, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJavaScriptEngine::sharedEngine.
| - (NSString *) name |
Definition at line 153 of file OOJSFunction.m.
Referenced by descriptionComponents, initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:, and name.
|
private |
Definition at line 36 of file OOJSFunction.h.
Referenced by deleteJSValue, evaluateWithContext:scope:argc:argv:result:, function, functionValue, and initWithFunction:context:.
|
private |
Definition at line 37 of file OOJSFunction.h.
Referenced by dealloc, initWithFunction:context:, and name.