{"payload":{"allShortcutsEnabled":false,"fileTree":{"db":{"items":[{"name":"btree.cpp","path":"db/btree.cpp","contentType":"file"},{"name":"btree.h","path":"db/btree.h","contentType":"file"},{"name":"btreecursor.cpp","path":"db/btreecursor.cpp","contentType":"file"},{"name":"clientcursor.cpp","path":"db/clientcursor.cpp","contentType":"file"},{"name":"clientcursor.h","path":"db/clientcursor.h","contentType":"file"},{"name":"cloner.cpp","path":"db/cloner.cpp","contentType":"file"},{"name":"commands.cpp","path":"db/commands.cpp","contentType":"file"},{"name":"commands.h","path":"db/commands.h","contentType":"file"},{"name":"cursor.h","path":"db/cursor.h","contentType":"file"},{"name":"database.h","path":"db/database.h","contentType":"file"},{"name":"db.cpp","path":"db/db.cpp","contentType":"file"},{"name":"db.h","path":"db/db.h","contentType":"file"},{"name":"db.rc","path":"db/db.rc","contentType":"file"},{"name":"db.sln","path":"db/db.sln","contentType":"file"},{"name":"db.vcproj","path":"db/db.vcproj","contentType":"file"},{"name":"dbcommands.cpp","path":"db/dbcommands.cpp","contentType":"file"},{"name":"dbeval.cpp","path":"db/dbeval.cpp","contentType":"file"},{"name":"dbhelpers.cpp","path":"db/dbhelpers.cpp","contentType":"file"},{"name":"dbhelpers.h","path":"db/dbhelpers.h","contentType":"file"},{"name":"dbinfo.cpp","path":"db/dbinfo.cpp","contentType":"file"},{"name":"dbinfo.h","path":"db/dbinfo.h","contentType":"file"},{"name":"dbmessage.h","path":"db/dbmessage.h","contentType":"file"},{"name":"dbwebserver.cpp","path":"db/dbwebserver.cpp","contentType":"file"},{"name":"instance.cpp","path":"db/instance.cpp","contentType":"file"},{"name":"instance.h","path":"db/instance.h","contentType":"file"},{"name":"introspect.cpp","path":"db/introspect.cpp","contentType":"file"},{"name":"introspect.h","path":"db/introspect.h","contentType":"file"},{"name":"javajs.cpp","path":"db/javajs.cpp","contentType":"file"},{"name":"javajs.h","path":"db/javajs.h","contentType":"file"},{"name":"javatest.cpp","path":"db/javatest.cpp","contentType":"file"},{"name":"jsobj.cpp","path":"db/jsobj.cpp","contentType":"file"},{"name":"jsobj.h","path":"db/jsobj.h","contentType":"file"},{"name":"json.cpp","path":"db/json.cpp","contentType":"file"},{"name":"json.h","path":"db/json.h","contentType":"file"},{"name":"makefile","path":"db/makefile","contentType":"file"},{"name":"makefile.Darwin.i386","path":"db/makefile.Darwin.i386","contentType":"file"},{"name":"makefile.Linux.i686","path":"db/makefile.Linux.i686","contentType":"file"},{"name":"makefile.Linux.x86_64","path":"db/makefile.Linux.x86_64","contentType":"file"},{"name":"matcher.cpp","path":"db/matcher.cpp","contentType":"file"},{"name":"matcher.h","path":"db/matcher.h","contentType":"file"},{"name":"minilex.h","path":"db/minilex.h","contentType":"file"},{"name":"namespace.cpp","path":"db/namespace.cpp","contentType":"file"},{"name":"namespace.h","path":"db/namespace.h","contentType":"file"},{"name":"pcre.txt","path":"db/pcre.txt","contentType":"file"},{"name":"pdfile.cpp","path":"db/pdfile.cpp","contentType":"file"},{"name":"pdfile.h","path":"db/pdfile.h","contentType":"file"},{"name":"query.cpp","path":"db/query.cpp","contentType":"file"},{"name":"query.h","path":"db/query.h","contentType":"file"},{"name":"queryoptimizer.cpp","path":"db/queryoptimizer.cpp","contentType":"file"},{"name":"queryoptimizer.h","path":"db/queryoptimizer.h","contentType":"file"},{"name":"repl.cpp","path":"db/repl.cpp","contentType":"file"},{"name":"repl.h","path":"db/repl.h","contentType":"file"},{"name":"replset.h","path":"db/replset.h","contentType":"file"},{"name":"resource.h","path":"db/resource.h","contentType":"file"},{"name":"scanandorder.h","path":"db/scanandorder.h","contentType":"file"},{"name":"storage.h","path":"db/storage.h","contentType":"file"},{"name":"tests.cpp","path":"db/tests.cpp","contentType":"file"}],"totalCount":57},"":{"items":[{"name":"bin","path":"bin","contentType":"directory"},{"name":"client","path":"client","contentType":"directory"},{"name":"db","path":"db","contentType":"directory"},{"name":"dbgrid","path":"dbgrid","contentType":"directory"},{"name":"dbtests","path":"dbtests","contentType":"directory"},{"name":"grid","path":"grid","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"mongo.xcodeproj","path":"mongo.xcodeproj","contentType":"directory"},{"name":"pcre-7.4","path":"pcre-7.4","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":"util","path":"util","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"GNU-AGPL-3.0.txt","path":"GNU-AGPL-3.0.txt","contentType":"file"},{"name":"README","path":"README","contentType":"file"},{"name":"stdafx.cpp","path":"stdafx.cpp","contentType":"file"},{"name":"stdafx.h","path":"stdafx.h","contentType":"file"},{"name":"stdafx.h.gch","path":"stdafx.h.gch","contentType":"file"},{"name":"targetver.h","path":"targetver.h","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":14.815518999999998,"foldersToFetch":[],"repo":{"id":108110,"defaultBranch":"master","name":"mongo","ownerLogin":"mongodb","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2009-01-15T16:15:18.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/45120?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"r0.1.7_rc1","listCacheKey":"v0:1710540421.0","canEdit":false,"refType":"tag","currentOid":"f867ea1a11c3eeffe3e6e85cba92479db2ffe463"},"path":"db/javajs.h","currentUser":null,"blob":{"rawLines":["// javajs.h","","/**","* Copyright (C) 2008 10gen Inc.","*","* This program is free software: you can redistribute it and/or modify","* it under the terms of the GNU Affero General Public License, version 3,","* as published by the Free Software Foundation.","*","* This program is distributed in the hope that it will be useful,","* but WITHOUT ANY WARRANTY; without even the implied warranty of","* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the","* GNU Affero General Public License for more details.","*","* You should have received a copy of the GNU Affero General Public License","* along with this program. If not, see .","*/","","/* this file contains code to call into java (into the 10gen sandbox) from inside the database */","","#pragma once","","#include \"../stdafx.h\"","","#define J_USE_OBJ","","#include ","#include ","#include ","#include ","","#if !defined(_WIN32)","#include ","#endif","","#include \"jsobj.h\"","","void jasserted(const char *msg, const char *file, unsigned line);","#define jassert(_Expression) if ( ! ( _Expression ) ){ jasserted(#_Expression, __FILE__, __LINE__); }","","int javajstest();","","const char * findEd();","const char * findEd(const char *);","","class BSONObj;","","class JavaJSImpl {","public:"," JavaJSImpl();"," JavaJSImpl(const char *);"," ~JavaJSImpl();",""," jlong scopeCreate();"," int scopeInit( jlong id , BSONObj * obj );"," int scopeSetThis( jlong id , BSONObj * obj );"," jboolean scopeReset( jlong id );"," void scopeFree( jlong id );",""," double scopeGetNumber( jlong id , const char * field );"," string scopeGetString( jlong id , const char * field );"," jboolean scopeGetBoolean( jlong id , const char * field );"," BSONObj scopeGetObject( jlong id , const char * field );"," char scopeGetType( jlong id , const char * field );",""," int scopeSetNumber( jlong id , const char * field , double val );"," int scopeSetString( jlong id , const char * field , const char * val );"," int scopeSetObject( jlong id , const char * field , BSONObj * obj );"," int scopeSetBoolean( jlong id , const char * field , jboolean val );",""," jlong functionCreate( const char * code );",""," /* return values:"," public static final int NO_SCOPE = -1;"," public static final int NO_FUNCTION = -2;"," public static final int INVOKE_ERROR = -3;"," public static final int INVOKE_SUCCESS = 0;"," */"," int invoke( jlong scope , jlong function );",""," void printException();",""," void run( const char * js );",""," void detach( JNIEnv * env ) {"," _jvm->DetachCurrentThread();"," }","","private:",""," jobject create( const char * name ) {"," jclass c = findClass( name );"," if ( ! c )"," return 0;",""," jmethodID cons = _getEnv()->GetMethodID( c , \"\" , \"()V\" );"," if ( ! cons )"," return 0;",""," return _getEnv()->NewObject( c , cons );"," }",""," jclass findClass( const char * name ) {"," return _getEnv()->FindClass( name );"," }","","","private:",""," JNIEnv * _getEnv();",""," JavaVM * _jvm;"," JNIEnv * _mainEnv;"," JavaVMInitArgs * _vmArgs;",""," boost::thread_specific_ptr * _envs;",""," jclass _dbhook;"," jclass _dbjni;",""," jmethodID _scopeCreate;"," jmethodID _scopeInit;"," jmethodID _scopeSetThis;"," jmethodID _scopeReset;"," jmethodID _scopeFree;",""," jmethodID _scopeGetNumber;"," jmethodID _scopeGetString;"," jmethodID _scopeGetObject;"," jmethodID _scopeGetBoolean;"," jmethodID _scopeGuessObjectSize;"," jmethodID _scopeGetType;",""," jmethodID _scopeSetNumber;"," jmethodID _scopeSetString;"," jmethodID _scopeSetObject;"," jmethodID _scopeSetBoolean;",""," jmethodID _functionCreate;",""," jmethodID _invoke;","","};","","extern JavaJSImpl *JavaJS;","","// a javascript \"scope\"","class Scope {","public:"," Scope() {"," s = JavaJS->scopeCreate();"," }"," ~Scope() {"," JavaJS->scopeFree(s);"," s = 0;"," }"," void reset() {"," JavaJS->scopeReset(s);"," }",""," void init( const char * data ) {"," BSONObj o( data , 0 );"," JavaJS->scopeInit( s , & o );"," }",""," double getNumber(const char *field) {"," return JavaJS->scopeGetNumber(s,field);"," }"," string getString(const char *field) {"," return JavaJS->scopeGetString(s,field);"," }"," jboolean getBoolean(const char *field) {"," return JavaJS->scopeGetBoolean(s,field);"," }"," BSONObj getObject(const char *field ) {"," return JavaJS->scopeGetObject(s,field);"," }"," int type(const char *field ) {"," return JavaJS->scopeGetType(s,field);"," }",""," void setNumber(const char *field, double val ) {"," JavaJS->scopeSetNumber(s,field,val);"," }"," void setString(const char *field, const char * val ) {"," JavaJS->scopeSetString(s,field,val);"," }"," void setObject(const char *field, BSONObj& obj ) {"," JavaJS->scopeSetObject(s,field,&obj);"," }"," void setBoolean(const char *field, jboolean val ) {"," JavaJS->scopeSetBoolean(s,field,val);"," }",""," int invoke(jlong function) {"," return JavaJS->invoke(s,function);"," }",""," jlong s;","};","","JNIEXPORT void JNICALL java_native_say(JNIEnv *, jclass, jobject outBuffer );","JNIEXPORT jint JNICALL java_native_call(JNIEnv *, jclass, jobject outBuffer , jobject inBuffer );"],"stylingDirectives":[[{"start":0,"end":11,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[],[{"start":0,"end":3,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":34,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":50,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":66,"cssClass":"pl-c"}],[{"start":0,"end":56,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[],[{"start":0,"end":97,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"},{"start":95,"end":97,"cssClass":"pl-c"}],[],[{"start":1,"end":7,"cssClass":"pl-k"}],[],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":22,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":21,"end":22,"cssClass":"pl-pds"}],[],[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":17,"cssClass":"pl-en"}],[],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":16,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":15,"end":16,"cssClass":"pl-pds"}],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":31,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":30,"end":31,"cssClass":"pl-pds"}],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":17,"end":18,"cssClass":"pl-pds"}],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":22,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":21,"end":22,"cssClass":"pl-pds"}],[],[{"start":1,"end":3,"cssClass":"pl-k"}],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":19,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":18,"end":19,"cssClass":"pl-pds"}],[{"start":1,"end":6,"cssClass":"pl-k"}],[],[{"start":1,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-s"},{"start":9,"end":10,"cssClass":"pl-pds"},{"start":17,"end":18,"cssClass":"pl-pds"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":14,"cssClass":"pl-en"},{"start":15,"end":20,"cssClass":"pl-k"},{"start":21,"end":25,"cssClass":"pl-k"},{"start":32,"end":37,"cssClass":"pl-k"},{"start":38,"end":42,"cssClass":"pl-k"},{"start":50,"end":58,"cssClass":"pl-k"}],[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":15,"cssClass":"pl-en"},{"start":16,"end":27,"cssClass":"pl-v"},{"start":29,"end":31,"cssClass":"pl-k"},{"start":55,"end":64,"cssClass":"pl-c1"}],[],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":4,"end":14,"cssClass":"pl-en"}],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":10,"cssClass":"pl-k"},{"start":13,"end":19,"cssClass":"pl-en"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":10,"cssClass":"pl-k"},{"start":13,"end":19,"cssClass":"pl-en"},{"start":20,"end":25,"cssClass":"pl-k"},{"start":26,"end":30,"cssClass":"pl-k"}],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":13,"cssClass":"pl-en"}],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":16,"cssClass":"pl-en"}],[{"start":0,"end":7,"cssClass":"pl-k"}],[{"start":4,"end":14,"cssClass":"pl-en"}],[{"start":4,"end":14,"cssClass":"pl-en"},{"start":15,"end":20,"cssClass":"pl-k"},{"start":21,"end":25,"cssClass":"pl-k"}],[{"start":4,"end":15,"cssClass":"pl-en"}],[],[{"start":10,"end":21,"cssClass":"pl-en"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":17,"cssClass":"pl-en"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":20,"cssClass":"pl-en"}],[{"start":13,"end":23,"cssClass":"pl-en"}],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-en"}],[],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":25,"cssClass":"pl-en"},{"start":38,"end":43,"cssClass":"pl-k"},{"start":44,"end":48,"cssClass":"pl-k"}],[{"start":11,"end":25,"cssClass":"pl-en"},{"start":38,"end":43,"cssClass":"pl-k"},{"start":44,"end":48,"cssClass":"pl-k"}],[{"start":13,"end":28,"cssClass":"pl-en"},{"start":41,"end":46,"cssClass":"pl-k"},{"start":47,"end":51,"cssClass":"pl-k"}],[{"start":12,"end":26,"cssClass":"pl-en"},{"start":39,"end":44,"cssClass":"pl-k"},{"start":45,"end":49,"cssClass":"pl-k"}],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":21,"cssClass":"pl-en"},{"start":34,"end":39,"cssClass":"pl-k"},{"start":40,"end":44,"cssClass":"pl-k"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":22,"cssClass":"pl-en"},{"start":35,"end":40,"cssClass":"pl-k"},{"start":41,"end":45,"cssClass":"pl-k"},{"start":56,"end":62,"cssClass":"pl-k"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":22,"cssClass":"pl-en"},{"start":35,"end":40,"cssClass":"pl-k"},{"start":41,"end":45,"cssClass":"pl-k"},{"start":56,"end":61,"cssClass":"pl-k"},{"start":62,"end":66,"cssClass":"pl-k"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":22,"cssClass":"pl-en"},{"start":35,"end":40,"cssClass":"pl-k"},{"start":41,"end":45,"cssClass":"pl-k"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":23,"cssClass":"pl-en"},{"start":36,"end":41,"cssClass":"pl-k"},{"start":42,"end":46,"cssClass":"pl-k"}],[],[{"start":10,"end":24,"cssClass":"pl-en"},{"start":26,"end":31,"cssClass":"pl-k"},{"start":32,"end":36,"cssClass":"pl-k"}],[],[{"start":4,"end":21,"cssClass":"pl-c"},{"start":4,"end":6,"cssClass":"pl-c"}],[{"start":0,"end":45,"cssClass":"pl-c"}],[{"start":0,"end":48,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[{"start":0,"end":50,"cssClass":"pl-c"}],[{"start":0,"end":8,"cssClass":"pl-c"},{"start":6,"end":8,"cssClass":"pl-c"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":14,"cssClass":"pl-en"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":23,"cssClass":"pl-en"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":12,"cssClass":"pl-en"},{"start":14,"end":19,"cssClass":"pl-k"},{"start":20,"end":24,"cssClass":"pl-k"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":15,"cssClass":"pl-en"}],[{"start":14,"end":33,"cssClass":"pl-c1"}],[],[],[{"start":0,"end":8,"cssClass":"pl-k"}],[],[{"start":12,"end":18,"cssClass":"pl-en"},{"start":20,"end":25,"cssClass":"pl-k"},{"start":26,"end":30,"cssClass":"pl-k"}],[{"start":19,"end":28,"cssClass":"pl-c1"}],[{"start":8,"end":10,"cssClass":"pl-k"}],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":20,"cssClass":"pl-c1"}],[],[{"start":25,"end":32,"cssClass":"pl-c1"},{"start":36,"end":47,"cssClass":"pl-c1"},{"start":53,"end":61,"cssClass":"pl-s"},{"start":53,"end":54,"cssClass":"pl-pds"},{"start":60,"end":61,"cssClass":"pl-pds"},{"start":64,"end":69,"cssClass":"pl-s"},{"start":64,"end":65,"cssClass":"pl-pds"},{"start":68,"end":69,"cssClass":"pl-pds"}],[{"start":8,"end":10,"cssClass":"pl-k"}],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":20,"cssClass":"pl-c1"}],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":22,"cssClass":"pl-c1"},{"start":26,"end":35,"cssClass":"pl-c1"}],[],[],[{"start":11,"end":20,"cssClass":"pl-en"},{"start":22,"end":27,"cssClass":"pl-k"},{"start":28,"end":32,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":22,"cssClass":"pl-c1"},{"start":26,"end":35,"cssClass":"pl-c1"}],[],[],[],[{"start":0,"end":8,"cssClass":"pl-k"}],[],[{"start":13,"end":20,"cssClass":"pl-en"}],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[{"start":0,"end":6,"cssClass":"pl-k"}],[],[{"start":0,"end":23,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":11,"cssClass":"pl-en"}],[{"start":0,"end":7,"cssClass":"pl-k"}],[{"start":4,"end":9,"cssClass":"pl-en"}],[{"start":20,"end":31,"cssClass":"pl-c1"}],[],[{"start":4,"end":10,"cssClass":"pl-en"}],[{"start":16,"end":25,"cssClass":"pl-c1"}],[{"start":12,"end":13,"cssClass":"pl-c1"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":14,"cssClass":"pl-en"}],[{"start":16,"end":26,"cssClass":"pl-c1"}],[],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":13,"cssClass":"pl-en"},{"start":15,"end":20,"cssClass":"pl-k"},{"start":21,"end":25,"cssClass":"pl-k"}],[{"start":16,"end":17,"cssClass":"pl-smi"},{"start":26,"end":27,"cssClass":"pl-c1"}],[{"start":16,"end":25,"cssClass":"pl-c1"}],[],[],[{"start":4,"end":10,"cssClass":"pl-k"},{"start":11,"end":20,"cssClass":"pl-en"},{"start":21,"end":26,"cssClass":"pl-k"},{"start":27,"end":31,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":37,"cssClass":"pl-c1"}],[],[{"start":11,"end":20,"cssClass":"pl-en"},{"start":21,"end":26,"cssClass":"pl-k"},{"start":27,"end":31,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":37,"cssClass":"pl-c1"}],[],[{"start":13,"end":23,"cssClass":"pl-en"},{"start":24,"end":29,"cssClass":"pl-k"},{"start":30,"end":34,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":38,"cssClass":"pl-c1"}],[],[{"start":12,"end":21,"cssClass":"pl-en"},{"start":22,"end":27,"cssClass":"pl-k"},{"start":28,"end":32,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":37,"cssClass":"pl-c1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":12,"cssClass":"pl-en"},{"start":13,"end":18,"cssClass":"pl-k"},{"start":19,"end":23,"cssClass":"pl-k"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":35,"cssClass":"pl-c1"}],[],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-en"},{"start":19,"end":24,"cssClass":"pl-k"},{"start":25,"end":29,"cssClass":"pl-k"},{"start":38,"end":44,"cssClass":"pl-k"}],[{"start":16,"end":30,"cssClass":"pl-c1"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-en"},{"start":19,"end":24,"cssClass":"pl-k"},{"start":25,"end":29,"cssClass":"pl-k"},{"start":38,"end":43,"cssClass":"pl-k"},{"start":44,"end":48,"cssClass":"pl-k"}],[{"start":16,"end":30,"cssClass":"pl-c1"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":18,"cssClass":"pl-en"},{"start":19,"end":24,"cssClass":"pl-k"},{"start":25,"end":29,"cssClass":"pl-k"}],[{"start":16,"end":30,"cssClass":"pl-c1"}],[],[{"start":4,"end":8,"cssClass":"pl-k"},{"start":9,"end":19,"cssClass":"pl-en"},{"start":20,"end":25,"cssClass":"pl-k"},{"start":26,"end":30,"cssClass":"pl-k"}],[{"start":16,"end":31,"cssClass":"pl-c1"}],[],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":14,"cssClass":"pl-en"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":23,"end":29,"cssClass":"pl-c1"}],[],[],[],[],[],[{"start":10,"end":14,"cssClass":"pl-k"},{"start":23,"end":38,"cssClass":"pl-en"}],[{"start":23,"end":39,"cssClass":"pl-en"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/mongodb/mongo/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"javajs.h","displayUrl":"https://github.com/mongodb/mongo/blob/r0.1.7_rc1/db/javajs.h?raw=true","headerInfo":{"blobSize":"5.14 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"82a36ef","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fmongodb%2Fmongo%2Fblob%2Fr0.1.7_rc1%2Fdb%2Fjavajs.h","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"203","truncatedSloc":"157"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C++","languageID":43,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/mongodb/mongo/blob/r0.1.7_rc1/db/javajs.h","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/mongodb/mongo/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/mongodb/mongo/raw/r0.1.7_rc1/db/javajs.h","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":true,"not_analyzed":false,"symbols":[{"name":"jasserted","kind":"function","ident_start":1001,"ident_end":1010,"extent_start":996,"extent_end":1061,"fully_qualified_name":"jasserted","ident_utf16":{"start":{"line_number":37,"utf16_col":5},"end":{"line_number":37,"utf16_col":14}},"extent_utf16":{"start":{"line_number":37,"utf16_col":0},"end":{"line_number":37,"utf16_col":65}}},{"name":"javajstest","kind":"function","ident_start":1169,"ident_end":1179,"extent_start":1165,"extent_end":1182,"fully_qualified_name":"javajstest","ident_utf16":{"start":{"line_number":40,"utf16_col":4},"end":{"line_number":40,"utf16_col":14}},"extent_utf16":{"start":{"line_number":40,"utf16_col":0},"end":{"line_number":40,"utf16_col":17}}},{"name":"BSONObj","kind":"class","ident_start":1249,"ident_end":1256,"extent_start":1243,"extent_end":1256,"fully_qualified_name":"BSONObj","ident_utf16":{"start":{"line_number":45,"utf16_col":6},"end":{"line_number":45,"utf16_col":13}},"extent_utf16":{"start":{"line_number":45,"utf16_col":0},"end":{"line_number":45,"utf16_col":13}}},{"name":"JavaJSImpl","kind":"class","ident_start":1265,"ident_end":1275,"extent_start":1259,"extent_end":3716,"fully_qualified_name":"JavaJSImpl","ident_utf16":{"start":{"line_number":47,"utf16_col":6},"end":{"line_number":47,"utf16_col":16}},"extent_utf16":{"start":{"line_number":47,"utf16_col":0},"end":{"line_number":142,"utf16_col":1}}},{"name":"scopeCreate","kind":"method","ident_start":1364,"ident_end":1375,"extent_start":1358,"extent_end":1378,"fully_qualified_name":"JavaJSImpl::scopeCreate","ident_utf16":{"start":{"line_number":53,"utf16_col":10},"end":{"line_number":53,"utf16_col":21}},"extent_utf16":{"start":{"line_number":53,"utf16_col":4},"end":{"line_number":53,"utf16_col":24}}},{"name":"scopeInit","kind":"method","ident_start":1387,"ident_end":1396,"extent_start":1383,"extent_end":1425,"fully_qualified_name":"JavaJSImpl::scopeInit","ident_utf16":{"start":{"line_number":54,"utf16_col":8},"end":{"line_number":54,"utf16_col":17}},"extent_utf16":{"start":{"line_number":54,"utf16_col":4},"end":{"line_number":54,"utf16_col":46}}},{"name":"scopeSetThis","kind":"method","ident_start":1434,"ident_end":1446,"extent_start":1430,"extent_end":1475,"fully_qualified_name":"JavaJSImpl::scopeSetThis","ident_utf16":{"start":{"line_number":55,"utf16_col":8},"end":{"line_number":55,"utf16_col":20}},"extent_utf16":{"start":{"line_number":55,"utf16_col":4},"end":{"line_number":55,"utf16_col":49}}},{"name":"scopeReset","kind":"method","ident_start":1489,"ident_end":1499,"extent_start":1480,"extent_end":1512,"fully_qualified_name":"JavaJSImpl::scopeReset","ident_utf16":{"start":{"line_number":56,"utf16_col":13},"end":{"line_number":56,"utf16_col":23}},"extent_utf16":{"start":{"line_number":56,"utf16_col":4},"end":{"line_number":56,"utf16_col":36}}},{"name":"scopeFree","kind":"method","ident_start":1522,"ident_end":1531,"extent_start":1517,"extent_end":1544,"fully_qualified_name":"JavaJSImpl::scopeFree","ident_utf16":{"start":{"line_number":57,"utf16_col":9},"end":{"line_number":57,"utf16_col":18}},"extent_utf16":{"start":{"line_number":57,"utf16_col":4},"end":{"line_number":57,"utf16_col":31}}},{"name":"scopeGetNumber","kind":"method","ident_start":1557,"ident_end":1571,"extent_start":1550,"extent_end":1605,"fully_qualified_name":"JavaJSImpl::scopeGetNumber","ident_utf16":{"start":{"line_number":59,"utf16_col":11},"end":{"line_number":59,"utf16_col":25}},"extent_utf16":{"start":{"line_number":59,"utf16_col":4},"end":{"line_number":59,"utf16_col":59}}},{"name":"scopeGetString","kind":"method","ident_start":1617,"ident_end":1631,"extent_start":1610,"extent_end":1665,"fully_qualified_name":"JavaJSImpl::scopeGetString","ident_utf16":{"start":{"line_number":60,"utf16_col":11},"end":{"line_number":60,"utf16_col":25}},"extent_utf16":{"start":{"line_number":60,"utf16_col":4},"end":{"line_number":60,"utf16_col":59}}},{"name":"scopeGetBoolean","kind":"method","ident_start":1679,"ident_end":1694,"extent_start":1670,"extent_end":1728,"fully_qualified_name":"JavaJSImpl::scopeGetBoolean","ident_utf16":{"start":{"line_number":61,"utf16_col":13},"end":{"line_number":61,"utf16_col":28}},"extent_utf16":{"start":{"line_number":61,"utf16_col":4},"end":{"line_number":61,"utf16_col":62}}},{"name":"scopeGetObject","kind":"method","ident_start":1741,"ident_end":1755,"extent_start":1733,"extent_end":1789,"fully_qualified_name":"JavaJSImpl::scopeGetObject","ident_utf16":{"start":{"line_number":62,"utf16_col":12},"end":{"line_number":62,"utf16_col":26}},"extent_utf16":{"start":{"line_number":62,"utf16_col":4},"end":{"line_number":62,"utf16_col":60}}},{"name":"scopeGetType","kind":"method","ident_start":1799,"ident_end":1811,"extent_start":1794,"extent_end":1845,"fully_qualified_name":"JavaJSImpl::scopeGetType","ident_utf16":{"start":{"line_number":63,"utf16_col":9},"end":{"line_number":63,"utf16_col":21}},"extent_utf16":{"start":{"line_number":63,"utf16_col":4},"end":{"line_number":63,"utf16_col":55}}},{"name":"scopeSetNumber","kind":"method","ident_start":1855,"ident_end":1869,"extent_start":1851,"extent_end":1916,"fully_qualified_name":"JavaJSImpl::scopeSetNumber","ident_utf16":{"start":{"line_number":65,"utf16_col":8},"end":{"line_number":65,"utf16_col":22}},"extent_utf16":{"start":{"line_number":65,"utf16_col":4},"end":{"line_number":65,"utf16_col":69}}},{"name":"scopeSetString","kind":"method","ident_start":1925,"ident_end":1939,"extent_start":1921,"extent_end":1992,"fully_qualified_name":"JavaJSImpl::scopeSetString","ident_utf16":{"start":{"line_number":66,"utf16_col":8},"end":{"line_number":66,"utf16_col":22}},"extent_utf16":{"start":{"line_number":66,"utf16_col":4},"end":{"line_number":66,"utf16_col":75}}},{"name":"scopeSetObject","kind":"method","ident_start":2001,"ident_end":2015,"extent_start":1997,"extent_end":2065,"fully_qualified_name":"JavaJSImpl::scopeSetObject","ident_utf16":{"start":{"line_number":67,"utf16_col":8},"end":{"line_number":67,"utf16_col":22}},"extent_utf16":{"start":{"line_number":67,"utf16_col":4},"end":{"line_number":67,"utf16_col":72}}},{"name":"scopeSetBoolean","kind":"method","ident_start":2074,"ident_end":2089,"extent_start":2070,"extent_end":2138,"fully_qualified_name":"JavaJSImpl::scopeSetBoolean","ident_utf16":{"start":{"line_number":68,"utf16_col":8},"end":{"line_number":68,"utf16_col":23}},"extent_utf16":{"start":{"line_number":68,"utf16_col":4},"end":{"line_number":68,"utf16_col":72}}},{"name":"functionCreate","kind":"method","ident_start":2150,"ident_end":2164,"extent_start":2144,"extent_end":2186,"fully_qualified_name":"JavaJSImpl::functionCreate","ident_utf16":{"start":{"line_number":70,"utf16_col":10},"end":{"line_number":70,"utf16_col":24}},"extent_utf16":{"start":{"line_number":70,"utf16_col":4},"end":{"line_number":70,"utf16_col":46}}},{"name":"invoke","kind":"method","ident_start":2423,"ident_end":2429,"extent_start":2419,"extent_end":2462,"fully_qualified_name":"JavaJSImpl::invoke","ident_utf16":{"start":{"line_number":78,"utf16_col":8},"end":{"line_number":78,"utf16_col":14}},"extent_utf16":{"start":{"line_number":78,"utf16_col":4},"end":{"line_number":78,"utf16_col":47}}},{"name":"printException","kind":"method","ident_start":2473,"ident_end":2487,"extent_start":2468,"extent_end":2490,"fully_qualified_name":"JavaJSImpl::printException","ident_utf16":{"start":{"line_number":80,"utf16_col":9},"end":{"line_number":80,"utf16_col":23}},"extent_utf16":{"start":{"line_number":80,"utf16_col":4},"end":{"line_number":80,"utf16_col":26}}},{"name":"run","kind":"method","ident_start":2501,"ident_end":2504,"extent_start":2496,"extent_end":2524,"fully_qualified_name":"JavaJSImpl::run","ident_utf16":{"start":{"line_number":82,"utf16_col":9},"end":{"line_number":82,"utf16_col":12}},"extent_utf16":{"start":{"line_number":82,"utf16_col":4},"end":{"line_number":82,"utf16_col":32}}},{"name":"detach","kind":"function","ident_start":2535,"ident_end":2541,"extent_start":2530,"extent_end":2602,"fully_qualified_name":"JavaJSImpl::detach","ident_utf16":{"start":{"line_number":84,"utf16_col":9},"end":{"line_number":84,"utf16_col":15}},"extent_utf16":{"start":{"line_number":84,"utf16_col":4},"end":{"line_number":86,"utf16_col":5}}},{"name":"create","kind":"function","ident_start":2626,"ident_end":2632,"extent_start":2618,"extent_end":2908,"fully_qualified_name":"JavaJSImpl::create","ident_utf16":{"start":{"line_number":90,"utf16_col":12},"end":{"line_number":90,"utf16_col":18}},"extent_utf16":{"start":{"line_number":90,"utf16_col":4},"end":{"line_number":100,"utf16_col":5}}},{"name":"findClass","kind":"function","ident_start":2921,"ident_end":2930,"extent_start":2914,"extent_end":3004,"fully_qualified_name":"JavaJSImpl::findClass","ident_utf16":{"start":{"line_number":102,"utf16_col":11},"end":{"line_number":102,"utf16_col":20}},"extent_utf16":{"start":{"line_number":102,"utf16_col":4},"end":{"line_number":104,"utf16_col":5}}},{"name":"Scope","kind":"class","ident_start":3777,"ident_end":3782,"extent_start":3771,"extent_end":5089,"fully_qualified_name":"Scope","ident_utf16":{"start":{"line_number":147,"utf16_col":6},"end":{"line_number":147,"utf16_col":11}},"extent_utf16":{"start":{"line_number":147,"utf16_col":0},"end":{"line_number":199,"utf16_col":1}}},{"name":"Scope","kind":"function","ident_start":3797,"ident_end":3802,"extent_start":3797,"extent_end":3847,"fully_qualified_name":"Scope::Scope","ident_utf16":{"start":{"line_number":149,"utf16_col":4},"end":{"line_number":149,"utf16_col":9}},"extent_utf16":{"start":{"line_number":149,"utf16_col":4},"end":{"line_number":151,"utf16_col":5}}},{"name":"reset","kind":"function","ident_start":3923,"ident_end":3928,"extent_start":3918,"extent_end":3969,"fully_qualified_name":"Scope::reset","ident_utf16":{"start":{"line_number":156,"utf16_col":9},"end":{"line_number":156,"utf16_col":14}},"extent_utf16":{"start":{"line_number":156,"utf16_col":4},"end":{"line_number":158,"utf16_col":5}}},{"name":"init","kind":"function","ident_start":3980,"ident_end":3984,"extent_start":3975,"extent_end":4082,"fully_qualified_name":"Scope::init","ident_utf16":{"start":{"line_number":160,"utf16_col":9},"end":{"line_number":160,"utf16_col":13}},"extent_utf16":{"start":{"line_number":160,"utf16_col":4},"end":{"line_number":163,"utf16_col":5}}},{"name":"getNumber","kind":"function","ident_start":4095,"ident_end":4104,"extent_start":4088,"extent_end":4179,"fully_qualified_name":"Scope::getNumber","ident_utf16":{"start":{"line_number":165,"utf16_col":11},"end":{"line_number":165,"utf16_col":20}},"extent_utf16":{"start":{"line_number":165,"utf16_col":4},"end":{"line_number":167,"utf16_col":5}}},{"name":"getString","kind":"function","ident_start":4191,"ident_end":4200,"extent_start":4184,"extent_end":4275,"fully_qualified_name":"Scope::getString","ident_utf16":{"start":{"line_number":168,"utf16_col":11},"end":{"line_number":168,"utf16_col":20}},"extent_utf16":{"start":{"line_number":168,"utf16_col":4},"end":{"line_number":170,"utf16_col":5}}},{"name":"getBoolean","kind":"function","ident_start":4289,"ident_end":4299,"extent_start":4280,"extent_end":4375,"fully_qualified_name":"Scope::getBoolean","ident_utf16":{"start":{"line_number":171,"utf16_col":13},"end":{"line_number":171,"utf16_col":23}},"extent_utf16":{"start":{"line_number":171,"utf16_col":4},"end":{"line_number":173,"utf16_col":5}}},{"name":"getObject","kind":"function","ident_start":4388,"ident_end":4397,"extent_start":4380,"extent_end":4473,"fully_qualified_name":"Scope::getObject","ident_utf16":{"start":{"line_number":174,"utf16_col":12},"end":{"line_number":174,"utf16_col":21}},"extent_utf16":{"start":{"line_number":174,"utf16_col":4},"end":{"line_number":176,"utf16_col":5}}},{"name":"type","kind":"function","ident_start":4482,"ident_end":4486,"extent_start":4478,"extent_end":4560,"fully_qualified_name":"Scope::type","ident_utf16":{"start":{"line_number":177,"utf16_col":8},"end":{"line_number":177,"utf16_col":12}},"extent_utf16":{"start":{"line_number":177,"utf16_col":4},"end":{"line_number":179,"utf16_col":5}}},{"name":"setNumber","kind":"function","ident_start":4571,"ident_end":4580,"extent_start":4566,"extent_end":4665,"fully_qualified_name":"Scope::setNumber","ident_utf16":{"start":{"line_number":181,"utf16_col":9},"end":{"line_number":181,"utf16_col":18}},"extent_utf16":{"start":{"line_number":181,"utf16_col":4},"end":{"line_number":183,"utf16_col":5}}},{"name":"setString","kind":"function","ident_start":4675,"ident_end":4684,"extent_start":4670,"extent_end":4775,"fully_qualified_name":"Scope::setString","ident_utf16":{"start":{"line_number":184,"utf16_col":9},"end":{"line_number":184,"utf16_col":18}},"extent_utf16":{"start":{"line_number":184,"utf16_col":4},"end":{"line_number":186,"utf16_col":5}}},{"name":"setObject","kind":"function","ident_start":4785,"ident_end":4794,"extent_start":4780,"extent_end":4882,"fully_qualified_name":"Scope::setObject","ident_utf16":{"start":{"line_number":187,"utf16_col":9},"end":{"line_number":187,"utf16_col":18}},"extent_utf16":{"start":{"line_number":187,"utf16_col":4},"end":{"line_number":189,"utf16_col":5}}},{"name":"setBoolean","kind":"function","ident_start":4892,"ident_end":4902,"extent_start":4887,"extent_end":4990,"fully_qualified_name":"Scope::setBoolean","ident_utf16":{"start":{"line_number":190,"utf16_col":9},"end":{"line_number":190,"utf16_col":19}},"extent_utf16":{"start":{"line_number":190,"utf16_col":4},"end":{"line_number":192,"utf16_col":5}}},{"name":"invoke","kind":"function","ident_start":5000,"ident_end":5006,"extent_start":4996,"extent_end":5073,"fully_qualified_name":"Scope::invoke","ident_utf16":{"start":{"line_number":194,"utf16_col":8},"end":{"line_number":194,"utf16_col":14}},"extent_utf16":{"start":{"line_number":194,"utf16_col":4},"end":{"line_number":196,"utf16_col":5}}},{"name":"java_native_say","kind":"function","ident_start":5115,"ident_end":5130,"extent_start":5092,"extent_end":5169,"fully_qualified_name":"java_native_say","ident_utf16":{"start":{"line_number":201,"utf16_col":23},"end":{"line_number":201,"utf16_col":38}},"extent_utf16":{"start":{"line_number":201,"utf16_col":0},"end":{"line_number":201,"utf16_col":77}}},{"name":"java_native_call","kind":"function","ident_start":5193,"ident_end":5209,"extent_start":5170,"extent_end":5267,"fully_qualified_name":"java_native_call","ident_utf16":{"start":{"line_number":202,"utf16_col":23},"end":{"line_number":202,"utf16_col":39}},"extent_utf16":{"start":{"line_number":202,"utf16_col":0},"end":{"line_number":202,"utf16_col":97}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/mongodb/mongo/branches":{"post":"AyHqSXr3cMSTmzTYIx3Sy5OUF_tJsh-awCNvxo6Tz82auBZEvnVhZnNRAzg3KyNzT7Hjrn14NaOyU4PreZUM1Q"},"/repos/preferences":{"post":"iYlL511VokEGQ2ND2FoFrASuKEDXqLao264XRVYfm-8yOdgXI7wrXUMps3Y81c4hVxcR8P770GdUNiJJZQ798Q"}}},"title":"mongo/db/javajs.h at r0.1.7_rc1 ยท mongodb/mongo"}