|
|
@ -3,6 +3,19 @@ |
|
|
|
import os, sys, re, string, glob |
|
|
|
import os, sys, re, string, glob |
|
|
|
from optparse import OptionParser |
|
|
|
from optparse import OptionParser |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Black list for classes and methods that does not implemented in Java API |
|
|
|
|
|
|
|
# Created to exclude referencies to them in @see tag |
|
|
|
|
|
|
|
JAVADOC_ENTITY_BLACK_LIST = set(["org.opencv.core.Core#abs", \ |
|
|
|
|
|
|
|
"org.opencv.core.Core#theRNG", \ |
|
|
|
|
|
|
|
"org.opencv.core.Core#extractImageCOI", \ |
|
|
|
|
|
|
|
"org.opencv.core.PCA", \ |
|
|
|
|
|
|
|
"org.opencv.core.SVD", \ |
|
|
|
|
|
|
|
"org.opencv.core.RNG", \ |
|
|
|
|
|
|
|
"org.opencv.imgproc.Imgproc#createMorphologyFilter", \ |
|
|
|
|
|
|
|
"org.opencv.imgproc.Imgproc#createLinearFilter", \ |
|
|
|
|
|
|
|
"org.opencv.imgproc.Imgproc#createSeparableLinearFilter", \ |
|
|
|
|
|
|
|
"org.opencv.imgproc.FilterEngine"]) |
|
|
|
|
|
|
|
|
|
|
|
class JavadocGenerator(object): |
|
|
|
class JavadocGenerator(object): |
|
|
|
def __init__(self, definitions = {}, modules= [], javadoc_marker = "//javadoc:"): |
|
|
|
def __init__(self, definitions = {}, modules= [], javadoc_marker = "//javadoc:"): |
|
|
|
self.definitions = definitions |
|
|
|
self.definitions = definitions |
|
|
@ -214,9 +227,9 @@ class JavadocGenerator(object): |
|
|
|
for see in decl["seealso"]: |
|
|
|
for see in decl["seealso"]: |
|
|
|
seedecl = self.definitions.get(see,None) |
|
|
|
seedecl = self.definitions.get(see,None) |
|
|
|
if seedecl: |
|
|
|
if seedecl: |
|
|
|
doc += prefix + " * @see " + self.getJavaName(seedecl, "#") + "\n" |
|
|
|
javadoc_name = self.getJavaName(seedecl, "#") |
|
|
|
else: |
|
|
|
if (javadoc_name not in JAVADOC_ENTITY_BLACK_LIST): |
|
|
|
doc += prefix + " * @see " + see.replace("::",".") + "\n" |
|
|
|
doc += prefix + " * @see " + javadoc_name + "\n" |
|
|
|
prefix = " *\n" |
|
|
|
prefix = " *\n" |
|
|
|
|
|
|
|
|
|
|
|
#doc += prefix + " * File: " + decl["file"] + " (line " + str(decl["line"]) + ")\n" |
|
|
|
#doc += prefix + " * File: " + decl["file"] + " (line " + str(decl["line"]) + ")\n" |
|
|
|