Class ResolvePathsRequest<T>
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.ResolvePathsRequest<T>
-
public abstract class ResolvePathsRequest<T> extends java.lang.ObjectContains all information required to analyze the project- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<java.lang.String>additionalModulesprivate java.nio.file.PathjdkHomeprivate java.nio.file.PathmainModuleDescriptorprivate java.util.Collection<T>pathElements
-
Constructor Summary
Constructors Modifier Constructor Description privateResolvePathsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) ResolvePathsResult<T>createResult()java.util.Collection<java.lang.String>getAdditionalModules()java.nio.file.PathgetJdkHome()java.nio.file.PathgetMainModuleDescriptor()java.util.Collection<T>getPathElements()static ResolvePathsRequest<java.io.File>ofFiles(java.util.Collection<java.io.File> files)static ResolvePathsRequest<java.nio.file.Path>ofPaths(java.util.Collection<java.nio.file.Path> paths)static ResolvePathsRequest<java.lang.String>ofStrings(java.util.Collection<java.lang.String> strings)ResolvePathsRequest<T>setAdditionalModules(java.util.Collection<java.lang.String> additionalModules)The module names that are usually passed with--add-modulesResolvePathsRequest<T>setJdkHome(T jdkHome)In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.ResolvePathsRequest<T>setMainModuleDescriptor(T mainModuleDescriptor)Must be eithermodule-info.javaormodule-info.classprotected abstract java.nio.file.PathtoPath(T t)static ResolvePathsRequest<java.io.File>withFiles(java.util.Collection<java.io.File> files)Deprecated.useofFiles(Collection)insteadstatic ResolvePathsRequest<java.nio.file.Path>withPaths(java.util.Collection<java.nio.file.Path> paths)Deprecated.useofPaths(Collection)insteadstatic ResolvePathsRequest<java.lang.String>withStrings(java.util.Collection<java.lang.String> strings)Deprecated.useofStrings(Collection)instead
-
-
-
Field Detail
-
jdkHome
private java.nio.file.Path jdkHome
-
mainModuleDescriptor
private java.nio.file.Path mainModuleDescriptor
-
pathElements
private java.util.Collection<T> pathElements
-
additionalModules
private java.util.Collection<java.lang.String> additionalModules
-
-
Method Detail
-
withFiles
@Deprecated public static ResolvePathsRequest<java.io.File> withFiles(java.util.Collection<java.io.File> files)
Deprecated.useofFiles(Collection)instead
-
ofFiles
public static ResolvePathsRequest<java.io.File> ofFiles(java.util.Collection<java.io.File> files)
-
withPaths
@Deprecated public static ResolvePathsRequest<java.nio.file.Path> withPaths(java.util.Collection<java.nio.file.Path> paths)
Deprecated.useofPaths(Collection)instead
-
ofPaths
public static ResolvePathsRequest<java.nio.file.Path> ofPaths(java.util.Collection<java.nio.file.Path> paths)
-
withStrings
@Deprecated public static ResolvePathsRequest<java.lang.String> withStrings(java.util.Collection<java.lang.String> strings)
Deprecated.useofStrings(Collection)instead
-
ofStrings
public static ResolvePathsRequest<java.lang.String> ofStrings(java.util.Collection<java.lang.String> strings)
-
toPath
protected abstract java.nio.file.Path toPath(T t)
-
createResult
final ResolvePathsResult<T> createResult()
-
getMainModuleDescriptor
public java.nio.file.Path getMainModuleDescriptor()
-
setMainModuleDescriptor
public ResolvePathsRequest<T> setMainModuleDescriptor(T mainModuleDescriptor)
Must be eithermodule-info.javaormodule-info.class- Parameters:
mainModuleDescriptor-- Returns:
- this request
-
getPathElements
public java.util.Collection<T> getPathElements()
-
setJdkHome
public ResolvePathsRequest<T> setJdkHome(T jdkHome)
In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.- Parameters:
jdkHome-- Returns:
- this request
-
getJdkHome
public java.nio.file.Path getJdkHome()
-
setAdditionalModules
public ResolvePathsRequest<T> setAdditionalModules(java.util.Collection<java.lang.String> additionalModules)
The module names that are usually passed with--add-modules- Parameters:
additionalModules-- Returns:
- this request
-
getAdditionalModules
public java.util.Collection<java.lang.String> getAdditionalModules()
-
-