FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/src/javaObject.h at master · NoamB/node-java · GitHub
NoamB
/
node-java
Public
forked from
joeferner/node-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-java
/
src
/
javaObject.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (29 loc) · 1.01 KB
Breadcrumbs
node-java
/
src
/
javaObject.h
Copy path
File metadata and controls
38 lines (29 loc) · 1.01 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
#
ifndef
_javaobject_h_
#
define
_javaobject_h_
#
include
<
v8.h
>
#
include
<
node.h
>
#
include
<
jni.h
>
#
include
<
list
>
#
include
"
methodCallBaton.h
"
class
Java
;
class
JavaObject
:
public
node
::ObjectWrap {
public:
static
void
Init
(v8::Handle<v8::Object> target);
static
v8::Local<v8::Object>
New
(Java* java, jobject obj);
jobject
getObject
() {
return
m_obj; }
void
Ref
() {
node::ObjectWrap::Ref
(); }
void
Unref
() {
node::ObjectWrap::Unref
(); }
private:
JavaObject
(Java* java, jobject obj);
~JavaObject
();
static
v8::Handle<v8::Value>
methodCall
(
const
v8::Arguments& args);
static
v8::Handle<v8::Value>
methodCallSync
(
const
v8::Arguments& args);
static
v8::Handle<v8::Value>
fieldGetter
(v8::Local<v8::String> property,
const
v8::AccessorInfo& info);
static
void
fieldSetter
(v8::Local<v8::String> property, v8::Local<v8::Value> value,
const
v8::AccessorInfo& info);
static
v8::Persistent<v8::FunctionTemplate> s_ct;
Java* m_java;
jobject m_obj;
jclass m_class;
std::list<jobject> m_fields;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL