Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
abe39796
Commit
abe39796
authored
Oct 18, 2017
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do wrap static methods but as non static
parent
cf0502d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
genwrapper.py
wrappers/java/genwrapper.py
+2
-4
No files found.
wrappers/java/genwrapper.py
View file @
abe39796
...
...
@@ -377,7 +377,7 @@ class JavaTranslator(object):
methodDict
[
'objectClassName'
]
=
_method
.
returnType
.
containedTypeDesc
.
desc
.
name
.
to_camel_case
()
methodDict
[
'objectClassImplName'
]
=
_method
.
returnType
.
containedTypeDesc
.
desc
.
name
.
to_camel_case
()
+
'Impl'
methodDict
[
'params'
]
=
'JNIEnv *env, jobject thiz
'
if
static
else
'JNIEnv *env, jobject thiz
, jlong ptr'
methodDict
[
'params'
]
=
'JNIEnv *env, jobject thiz, jlong ptr'
methodDict
[
'params_impl'
]
=
''
methodDict
[
'strings'
]
=
[]
methodDict
[
'objects'
]
=
[]
...
...
@@ -430,7 +430,6 @@ class JavaTranslator(object):
def
translate_class
(
self
,
_class
):
classDict
=
{
'methods'
:
[],
'staticMethods'
:
[],
'jniMethods'
:
[],
}
...
...
@@ -458,7 +457,7 @@ class JavaTranslator(object):
try
:
methodDict
=
self
.
translate_method
(
method
)
jniMethodDict
=
self
.
translate_jni_method
(
_class
.
name
,
method
,
True
)
classDict
[
'
staticM
ethods'
]
.
append
(
methodDict
)
classDict
[
'
m
ethods'
]
.
append
(
methodDict
)
classDict
[
'jniMethods'
]
.
append
(
jniMethodDict
)
except
AbsApi
.
Error
as
e
:
print
(
'Could not translate {0}: {1}'
.
format
(
method
.
name
.
to_snake_case
(
fullName
=
True
),
e
.
args
[
0
]))
...
...
@@ -673,7 +672,6 @@ class JavaClass(object):
self
.
filename
=
self
.
className
+
".java"
self
.
imports
=
[]
self
.
methods
=
self
.
_class
[
'methods'
]
self
.
staticMethods
=
self
.
_class
[
'staticMethods'
]
self
.
jniMethods
=
self
.
_class
[
'jniMethods'
]
self
.
doc
=
self
.
_class
[
'doc'
]
self
.
enums
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment