summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorcremet <cremet@epfl.ch>2004-01-13 13:38:36 +0000
committercremet <cremet@epfl.ch>2004-01-13 13:38:36 +0000
commit8a9f354696a13ea32939f341e174521f5e197035 (patch)
treedad63d709cd97b40c700a47f4b8268f511061f0c /sources
parentc474f7cb36134455262e42963cab95f2caefff2e (diff)
downloadscala-8a9f354696a13ea32939f341e174521f5e197035.tar.gz
scala-8a9f354696a13ea32939f341e174521f5e197035.tar.bz2
scala-8a9f354696a13ea32939f341e174521f5e197035.zip
- Now do not generate documentation for module ...
- Now do not generate documentation for module symbols that contain static fields of a java class and that have no fields.
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scaladoc/ScalaSearch.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/scala/tools/scaladoc/ScalaSearch.java b/sources/scala/tools/scaladoc/ScalaSearch.java
index 3e8c864b99..7b1851d5f6 100644
--- a/sources/scala/tools/scaladoc/ScalaSearch.java
+++ b/sources/scala/tools/scaladoc/ScalaSearch.java
@@ -69,12 +69,20 @@ public class ScalaSearch {
NameTransformer.decode(sym.name).toString().endsWith("_=");
}
+ /** Test if the given symbol is an empty java module generated to
+ * contain static fields and methods of a java class.
+ */
+ public static boolean isEmptyJavaModule(Symbol sym) {
+ return sym.isModule() && sym.isJava() && !sym.isPackage() && (members(sym).length == 0);
+ }
+
+
/** Test if the given symbol is relevant for the documentation.
*/
public static boolean isRelevant(Symbol sym) {
return !isGenerated(sym) && !isLazy(sym) && !isPrivate(sym) &&
!(sym.isPackage() && sym.isClass()) && !sym.isConstructor() &&
- !sym.isCaseFactory();
+ !sym.isCaseFactory() && !isEmptyJavaModule(sym);
}
//////////////////////// SCOPE ITERATOR //////////////////////////////