Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
70234433
Commit
70234433
authored
Sep 06, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce verbosity of Java API generators
parent
b8adc045
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
gen_java.py
modules/java/generator/gen_java.py
+2
-2
gen_javadoc.py
modules/java/generator/gen_javadoc.py
+0
-3
rst_parser.py
modules/java/generator/rst_parser.py
+0
-1
No files found.
modules/java/generator/gen_java.py
View file @
70234433
...
...
@@ -987,14 +987,14 @@ extern "C" {
msg
=
"// Return type '
%
s' is not supported, skipping the function
\n\n
"
%
fi
.
ctype
self
.
skipped_func_list
.
append
(
c_decl
+
"
\n
"
+
msg
)
j_code
.
write
(
" "
*
4
+
msg
)
print
"SKIP:"
,
c_decl
,
"
\n\t
due to RET type"
,
fi
.
ctype
print
"SKIP:"
,
c_decl
.
strip
(),
"
\t
due to RET type"
,
fi
.
ctype
return
for
a
in
fi
.
args
:
if
a
.
ctype
not
in
type_dict
:
msg
=
"// Unknown type '
%
s' (
%
s), skipping the function
\n\n
"
%
(
a
.
ctype
,
a
.
out
or
"I"
)
self
.
skipped_func_list
.
append
(
c_decl
+
"
\n
"
+
msg
)
j_code
.
write
(
" "
*
4
+
msg
)
print
"SKIP:"
,
c_decl
,
"
\n\t
due to ARG type"
,
a
.
ctype
,
"/"
+
(
a
.
out
or
"I"
)
print
"SKIP:"
,
c_decl
.
strip
(),
"
\t
due to ARG type"
,
a
.
ctype
,
"/"
+
(
a
.
out
or
"I"
)
return
self
.
ported_func_list
.
append
(
c_decl
)
...
...
modules/java/generator/gen_javadoc.py
View file @
70234433
...
...
@@ -222,7 +222,6 @@ class JavadocGenerator(object):
return
(
doc
+
" */"
)
.
replace
(
"::"
,
"."
)
def
printSummary
(
self
):
print
print
"Javadoc Generator Summary:"
print
" Total markers:
%
s"
%
self
.
markers_processed
print
" Undocumented markers:
%
s"
%
(
self
.
markers_processed
-
self
.
markers_documented
)
...
...
@@ -256,7 +255,6 @@ if __name__ == "__main__":
parser
.
print_help
()
exit
(
0
)
print
"Parsing documentation..."
parser
=
rst_parser
.
RstParser
(
hdr_parser
.
CppHeaderParser
())
for
m
in
options
.
modules
:
parser
.
parse
(
m
,
os
.
path
.
join
(
selfpath
,
"../../"
+
m
))
...
...
@@ -268,7 +266,6 @@ if __name__ == "__main__":
generator
.
show_warnings
=
options
.
warnings
generator
.
show_errors
=
options
.
errors
print
"Generating javadoc comments for "
+
", "
.
join
(
options
.
modules
)
for
path
in
args
:
folder
=
os
.
path
.
abspath
(
path
)
for
jfile
in
[
f
for
f
in
glob
.
glob
(
os
.
path
.
join
(
folder
,
"*.java"
))
if
not
f
.
endswith
(
"-jdoc.java"
)]:
...
...
modules/java/generator/rst_parser.py
View file @
70234433
...
...
@@ -612,7 +612,6 @@ class RstParser(object):
return
s
def
printSummary
(
self
):
print
print
"RST Parser Summary:"
print
" Total sections:
%
s"
%
self
.
sections_total
print
" Skipped sections:
%
s"
%
self
.
sections_skipped
...
...
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