A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add to new utility functions :
[simgrid.git]
/
src
/
java
/
jxbt_utilities.h
diff --git
a/src/java/jxbt_utilities.h
b/src/java/jxbt_utilities.h
index
97e5eb4
..
570645b
100644
(file)
--- a/
src/java/jxbt_utilities.h
+++ b/
src/java/jxbt_utilities.h
@@
-27,6
+27,10
@@
jclass jxbt_get_class(JNIEnv* env, const char*name);
(it's ok to to pass a NULL class: it's a noop) */
jmethodID jxbt_get_jmethod(JNIEnv* env, jclass class,
const char *name,const char *signature);
(it's ok to to pass a NULL class: it's a noop) */
jmethodID jxbt_get_jmethod(JNIEnv* env, jclass class,
const char *name,const char *signature);
+
+/* Like the jxbt_get_class() but get a static method */
+jmethodID jxbt_get_static_jmethod(JNIEnv* env, jclass cls,
+ const char *name,const char *signature);
/* Search a field in a class and throw an exception if not found
(it's ok to to pass a NULL class: it's a noop) */
/* Search a field in a class and throw an exception if not found
(it's ok to to pass a NULL class: it's a noop) */
@@
-39,6
+43,10
@@
jfieldID jxbt_get_jfield(JNIEnv* env, jclass class,
jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname,
const char *name,const char *signature);
jmethodID jxbt_get_smethod(JNIEnv* env, const char *classname,
const char *name,const char *signature);
+/* Like the jxbt_get_smethod() but get a static method */
+jmethodID jxbt_get_static_smethod(JNIEnv* env, const char *classname,
+ const char *name,const char *signature);
+
/* Search a field in a class and throw an exception if not found
(it's ok to to pass a NULL class: it's a noop) */
jfieldID jxbt_get_sfield(JNIEnv* env, const char *classname,
/* Search a field in a class and throw an exception if not found
(it's ok to to pass a NULL class: it's a noop) */
jfieldID jxbt_get_sfield(JNIEnv* env, const char *classname,