You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[class-parse] really support Java8 and other various doclet types. (#125)
ClassPath class had a red-herring property named "DocletType", which was
NEVER assigned and therefore never worked. Its existence is optimistic
so that it premised that any consuming code knows which doclet type its
argument javadoc is generated with.
So, just kill it and implement working code here.
Now that we get a working doclet parser, a handful of Java8 scraper issues
were discovered, so fixed them all. Namely:
- Arrays are replaced as :A, not mere [].
- the new DroidDoc actually uses [] as is, and I believe it used to be
so too in Javadocs. On the other hand, [] may show up only within
droiddocs, so skip that string.Replace() for Java8.
- Java8 doc parsers simply passed '-' which actually needed to be escaped.
It caused errors when argument names were simple like 'x-y' (which was
treated as character range specification in regex).
- regex matching for "anything except for '('" should actually be
"... except for '(' and ')'" and then they should have been escaped too.
@@ -115,13 +109,15 @@ public Java7DocScraper (string dir)
115
109
116
110
classJava8DocScraper:AndroidDocScraper
117
111
{
118
-
constStringpattern_head_javadoc="<td class=\"col.+\"><code><strong><a href=\"[./]*";// I'm not sure how path could be specified... (./ , ../ , or even /)
112
+
constStringpattern_head_javadoc="<td class=\"col.+\"><code><span class=\"memberNameLink\"><a href=\"[./]*";// I'm not sure how path could be specified... (./ , ../ , or even /)
0 commit comments