@Test public void processTypeName() { assertEquals("../index.html?Foo.html", processor.process("@Foo")); assertEquals("../index.html?foo/Bar.html", processor.process("@foo.Bar")); }
@Override public String process(String uri) { String newUri = preprocessUri(uri); if (!newUri.equals(uri)) { newUri = prependWithBasePackage(newUri); if (SourceVersion.isName(newUri)) { if (isPotentialPackageName(newUri)) { return toPackagePage(newUri); } return toTypePage(newUri); } } return uri; }
JavadocShortcutUriProcessor implements UriProcessor { @Override public String process(String uri) { String newUri = preprocessUri(uri); if (!newUri.equals(uri)) { newUri = prependWithBasePackage(newUri); if (SourceVersion.isName(newUri)) { if (isPotentialPackageName(newUri)) { return toPackagePage(newUri); } return toTypePage(newUri); } } return uri; } }
JavadocShortcutUriProcessor implements UriProcessor { @Override public String process(String uri) { String newUri = preprocessUri(uri); if (!newUri.equals(uri)) { newUri = prependWithBasePackage(newUri); if (SourceVersion.isName(newUri)) { if (isPotentialPackageName(newUri)) { return toPackagePage(newUri); } return toTypePage(newUri); } } return uri; } JavadocShortcutUriProcessor(String javadocRelativePath, String basePackageName); }
JavadocShortcutUriProcessor implements UriProcessor { @Override public String process(String uri) { String newUri = preprocessUri(uri); if (!newUri.equals(uri)) { newUri = prependWithBasePackage(newUri); if (SourceVersion.isName(newUri)) { if (isPotentialPackageName(newUri)) { return toPackagePage(newUri); } return toTypePage(newUri); } } return uri; } JavadocShortcutUriProcessor(String javadocRelativePath, String basePackageName); @Override String process(String uri); @Override String target(String uri); }
JavadocShortcutUriProcessor implements UriProcessor { @Override public String process(String uri) { String newUri = preprocessUri(uri); if (!newUri.equals(uri)) { newUri = prependWithBasePackage(newUri); if (SourceVersion.isName(newUri)) { if (isPotentialPackageName(newUri)) { return toPackagePage(newUri); } return toTypePage(newUri); } } return uri; } JavadocShortcutUriProcessor(String javadocRelativePath, String basePackageName); @Override String process(String uri); @Override String target(String uri);  }