funcs ignore list added for Java API generator

pull/13383/head
Andrey Pavlenko 14 years ago
parent 0b57d904db
commit a99b80b1a9
  1. 24
      modules/java/gen_java.py

@ -6,6 +6,21 @@ try:
except:
from StringIO import StringIO
func_ignore_list = (
"namedWindow",
"destroyWindow",
"destroyAllWindows",
"startWindowThread",
"setWindowProperty",
"getWindowProperty",
"getTrackbarPos",
"setTrackbarPos",
"imshow",
"waitKey",
)
# c_type : { java/jni correspondence }
type_dict = {
# "simple" : { j_type : "?", jn_type : "?", jni_type : "?", suffix : "?" },
@ -391,6 +406,10 @@ class JavaWrapperGenerator(object):
def gen_func(self, fi, isoverload, jn_code):
if fi.name in func_ignore_list: # skip irrelevant funcs
return
self.total_func_counter += 1
# // C++: c_decl
@ -462,6 +481,11 @@ class JavaWrapperGenerator(object):
else:
jn_args.append(a)
jni_args.append(a)
if a.out:
if "vector" in a.ctype: # -> Mat
pass
else: # -> double[6]
pass
# java part:
# private java NATIVE method decl

Loading…
Cancel
Save