Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marchof/io.javaalmanac.javadoclink

Generator for Javadoc deep links
https://github.com/marchof/io.javaalmanac.javadoclink

java javaalmanac-io javadoc

Last synced: about 2 months ago
JSON representation

Generator for Javadoc deep links

Awesome Lists containing this project

README

        

io.javaalmanac.javadoclink - Deep links for Javadoc
===================================================

Small Java library to create deep links into generated Javadoc for all Java
versions from 1.1 to 24.

The library can create links for

* modules
* packages
* types (classes, interfaces, enums, records, annotations)
* methods and constructors
* fields

based on the internal names (class files) or on Java reflection types.

## Usage

The latest version can be obtained with the following Maven dependency:

```xml

io.javaalmanac
javadoclink
1.6.0

```

The only public interface of the library is `io.javaalmanac.javadoclink.JavaDocLink`. It
is used to get instances, the base URL and retrieve links for different Java
language elements. This For example this snippet creates a link to the
`java.lang.String` class:

```java
JavaDocLink.forVersion("11")
.withBaseUrl("https://docs.oracle.com/en/java/javase/11/docs/api/")
.classLink(String.class);
```

Or using internal vm names:

```java
JavaDocLink.forVersion("11")
.withBaseUrl("https://docs.oracle.com/en/java/javase/11/docs/api/")
.classLink("java.base", "java/lang/String");
```

## License

This code is provided "as is" under the [MIT License](LICENSE.md), without warranty of any kind.

## Trademarks

Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.