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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the member part of the reference. -
Constructor Summary
ConstructorsConstructorDescriptionFullyQualifiedJavadocReference(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:
truein 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:
toStringin classJavadocReference
-
hashCode
- Overrides:
hashCodein classJavadocReference
-
equals
- Overrides:
equalsin classJavadocReference
-