Class FullyQualifiedJavadocReference
java.lang.Object
org.apache.maven.tools.plugin.javadoc.JavadocReference
org.apache.maven.tools.plugin.javadoc.FullyQualifiedJavadocReference
Wraps a fully qualified (and resolved) code reference used in javadoc tags
see
, link
and
linkplain
. Similar to JavadocReference
but can distinguish between package names and class names. The
package name is always set for a resolved reference (except for references to modules). The member is always the
normalized form containing only fully qualified type names (without argument names), separated by ,
without
any whitespace characters. Also the member type is always resolved to one of FullyQualifiedJavadocReference.MemberType
(in case the
reference contains a member part).-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of the member part of the reference. -
Constructor Summary
ConstructorDescriptionFullyQualifiedJavadocReference
(String packageName, boolean isExternal) FullyQualifiedJavadocReference
(String packageName, String className, boolean isExternal) FullyQualifiedJavadocReference
(String packageName, String className, String member, FullyQualifiedJavadocReference.MemberType memberType, boolean isExternal) FullyQualifiedJavadocReference
(String packageName, Optional<String> label, boolean isExternal) FullyQualifiedJavadocReference
(String packageName, Optional<String> className, Optional<String> member, Optional<FullyQualifiedJavadocReference.MemberType> memberType, Optional<String> label, boolean isExternal) FullyQualifiedJavadocReference
(Optional<String> moduleName, Optional<String> packageName, Optional<String> className, Optional<String> member, Optional<FullyQualifiedJavadocReference.MemberType> memberType, Optional<String> label, boolean isExternal) -
Method Summary
Methods inherited from class org.apache.maven.tools.plugin.javadoc.JavadocReference
getLabel, getMember, getModuleName, getPackageNameClassName, parse
-
Constructor Details
-
FullyQualifiedJavadocReference
-
FullyQualifiedJavadocReference
public FullyQualifiedJavadocReference(String packageName, Optional<String> label, boolean isExternal) -
FullyQualifiedJavadocReference
-
FullyQualifiedJavadocReference
public FullyQualifiedJavadocReference(String packageName, String className, String member, FullyQualifiedJavadocReference.MemberType memberType, boolean isExternal) -
FullyQualifiedJavadocReference
public FullyQualifiedJavadocReference(String packageName, Optional<String> className, Optional<String> member, Optional<FullyQualifiedJavadocReference.MemberType> memberType, Optional<String> label, boolean isExternal) -
FullyQualifiedJavadocReference
-
-
Method Details
-
isExternal
- Returns:
true
in case this class/package is part of another classloader
-
getPackageName
- Returns:
- the package name of the referenced class
-
getClassName
- Returns:
- the simple class name of the referenced class, may be prefixed by the declaring class names, separated by '.' (for inner classes)
-
getMemberType
- Returns:
- the type of the member. Only empty if no member is set.
-
getFullyQualifiedClassName
-
toString
- Overrides:
toString
in classJavadocReference
-
hashCode
- Overrides:
hashCode
in classJavadocReference
-
equals
- Overrides:
equals
in classJavadocReference
-