GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — node-java/src-cpp/java.h at master · joeferner/node-java

Expand file tree

/

java.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
85 lines (74 loc) · 2.45 KB
/

java.h

Copy path

File metadata and controls

85 lines (74 loc) · 2.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef _node_java_h_
#define _node_java_h_
#include <jni.h>
#include <nan.h>
#include <node.h>
#include <string>
#include <v8.h>
#ifdef JNI_VERSION_1_8
#define JNI_BEST_VERSION JNI_VERSION_1_8
#else
#define JNI_BEST_VERSION JNI_VERSION_1_6
#endif
class Java : public Nan::ObjectWrap {
public:
static void Init(v8::Local<v8::Object> target);
JavaVM *getJvm() { return m_jvm; }
JNIEnv *getJavaEnv() {
return m_env;
} // can only be used safely by the main thread as this is the thread it belongs to
jobject getClassLoader() { return m_classLoader; }
public:
bool DoSync() const { return doSync; }
bool DoAsync() const { return doAsync; }
bool DoPromise() const { return doPromise; }
std::string SyncSuffix() const { return m_SyncSuffix; }
std::string AsyncSuffix() const { return m_AsyncSuffix; }
std::string PromiseSuffix() const { return m_PromiseSuffix; }
private:
Java();
~Java();
v8::Local<v8::Value> createJVM(JavaVM **jvm, JNIEnv **env);
void destroyJVM(JavaVM **jvm, JNIEnv **env);
void configureAsync(v8::Local<v8::Value> &asyncOptions);
static NAN_METHOD(New);
static NAN_METHOD(getClassLoader);
static NAN_METHOD(newInstance);
static NAN_METHOD(newInstanceSync);
static NAN_METHOD(newProxy);
static NAN_METHOD(callStaticMethod);
static NAN_METHOD(callStaticMethodSync);
static NAN_METHOD(callMethod);
static NAN_METHOD(callMethodSync);
static NAN_METHOD(findClassSync);
static NAN_METHOD(newArray);
static NAN_METHOD(newByte);
static NAN_METHOD(newChar);
static NAN_METHOD(newShort);
static NAN_METHOD(newLong);
static NAN_METHOD(newFloat);
static NAN_METHOD(newDouble);
static NAN_METHOD(getStaticFieldValue);
static NAN_METHOD(setStaticFieldValue);
static NAN_METHOD(instanceOf);
static NAN_METHOD(stop);
static NAN_GETTER(AccessorProhibitsOverwritingGetter);
static NAN_SETTER(AccessorProhibitsOverwritingSetter);
v8::Local<v8::Value> ensureJvm();
static Nan::Persistent<v8::FunctionTemplate> s_ct;
JavaVM *m_jvm;
JNIEnv *m_env; // can only be used safely by the main thread as this is the thread it belongs to
jobject m_classLoader;
std::string m_classPath;
static std::string s_nativeBindingLocation;
Nan::Persistent<v8::Array> m_classPathArray;
Nan::Persistent<v8::Array> m_optionsArray;
Nan::Persistent<v8::Object> m_asyncOptions;
std::string m_SyncSuffix;
std::string m_AsyncSuffix;
std::string m_PromiseSuffix;
bool doSync;
bool doAsync;
bool doPromise;
};
#endif
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.