Package org.apache.maven.api
Class JavaPathType.Modular
java.lang.Object
org.apache.maven.api.JavaPathType.Modular
- All Implemented Interfaces:
PathType
- Enclosing class:
JavaPathType
Type of path which is applied to only one specific Java module.
The main case is the Java
--patch-module option.- See Also:
-
Field Summary
Fields inherited from interface org.apache.maven.api.PathType
UNRESOLVED -
Method Summary
Modifier and TypeMethodDescriptionid()Returns the name of the tool option for this path, including the module name.Returns the name of the module for which a path is specifiedname()Returns the name of the tool option for this path, not including the module name.option()Returns the name of the tool option for this path.String[]Returns the option followed by a string representation of the given path elements.rawType()Returns the type of path without indication about the target module.toString()Returns the programmatic name of this path type, including the module to patch.
-
Method Details
-
rawType
Returns the type of path without indication about the target module. This is usuallyJavaPathType.PATCH_MODULE.- Returns:
- type of path without indication about the target module
-
id
Returns the name of the tool option for this path, including the module name. -
name
Returns the name of the tool option for this path, not including the module name. -
moduleName
Returns the name of the module for which a path is specified- Returns:
- name of the module for which a path is specified
-
option
Returns the name of the tool option for this path. The option does not include the module name on which it applies. -
option
Returns the option followed by a string representation of the given path elements. The path elements are separated by an option-specific or platform-specific separator. If the givenpathsargument contains no element, then this method returns an empty string. -
toString
Returns the programmatic name of this path type, including the module to patch. For example, if this type was created byJavaPathType.patchModule("foo.bar"), then this method returns"PathType[PATCH_MODULE:foo.bar]").
-