public class JavadocReference extends Object
see
, link
and linkplain
.
The format of the reference given as string is module/package.class#member label
.
Members must be separated with a #
to be detected.
Targets either module, package, class or field/method/constructor in class.
This class does not know whether the second part part refers to a package, class or both,
as they use the same alphabet and separators.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Optional<String> |
getLabel() |
Optional<String> |
getMember() |
Optional<String> |
getModuleName() |
Optional<String> |
getPackageNameClassName() |
int |
hashCode() |
static JavadocReference |
parse(String reference) |
String |
toString() |
public static JavadocReference parse(String reference)
reference
- the reference value to parseJavadocReference
IllegalArgumentException
- in case the reference has an invalid formatpublic Optional<String> getModuleName()
public Optional<String> getPackageNameClassName()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.