Class ResolvePathsResult<T>
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.ResolvePathsResult<T>
-
public class ResolvePathsResult<T> extends java.lang.Object
Holds the results of the project analyzer- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResolvePathsResult.ModuleNameSource
Source of the modulename
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<T>
classpathElements
private JavaModuleDescriptor
mainModuleDescriptor
private java.util.Map<T,ResolvePathsResult.ModuleNameSource>
modulepathElements
private java.util.Map<T,JavaModuleDescriptor>
pathElements
Ordered map, respects the classpath orderprivate java.util.Map<T,java.lang.Exception>
pathExceptions
-
Constructor Summary
Constructors Constructor Description ResolvePathsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<T>
getClasspathElements()
All T that belong to the classpath based on the module descriptorJavaModuleDescriptor
getMainModuleDescriptor()
The resolved main module descriptorjava.util.Map<T,ResolvePathsResult.ModuleNameSource>
getModulepathElements()
All T that belong to the modulepath, based on the module descriptor.java.util.Map<T,JavaModuleDescriptor>
getPathElements()
Ordered map, respects the classpath orderjava.util.Map<T,java.lang.Exception>
getPathExceptions()
Map containing exceptions for every T which modulename resolution failed(package private) void
setClasspathElements(java.util.Collection<T> classpathElements)
(package private) void
setMainModuleDescriptor(JavaModuleDescriptor mainModuleDescriptor)
(package private) void
setModulepathElements(java.util.Map<T,ResolvePathsResult.ModuleNameSource> modulepathElements)
(package private) void
setPathElements(java.util.Map<T,JavaModuleDescriptor> pathElements)
(package private) void
setPathExceptions(java.util.Map<T,java.lang.Exception> pathExceptions)
-
-
-
Field Detail
-
mainModuleDescriptor
private JavaModuleDescriptor mainModuleDescriptor
-
pathElements
private java.util.Map<T,JavaModuleDescriptor> pathElements
Ordered map, respects the classpath order
-
modulepathElements
private java.util.Map<T,ResolvePathsResult.ModuleNameSource> modulepathElements
-
classpathElements
private java.util.Collection<T> classpathElements
-
pathExceptions
private java.util.Map<T,java.lang.Exception> pathExceptions
-
-
Method Detail
-
setMainModuleDescriptor
void setMainModuleDescriptor(JavaModuleDescriptor mainModuleDescriptor)
-
getMainModuleDescriptor
public JavaModuleDescriptor getMainModuleDescriptor()
The resolved main module descriptor- Returns:
- the resolved descriptor
- See Also:
ResolvePathsRequest.setMainModuleDescriptor(Object)
-
setPathElements
void setPathElements(java.util.Map<T,JavaModuleDescriptor> pathElements)
-
getPathElements
public java.util.Map<T,JavaModuleDescriptor> getPathElements()
Ordered map, respects the classpath order
-
setClasspathElements
void setClasspathElements(java.util.Collection<T> classpathElements)
-
getClasspathElements
public java.util.Collection<T> getClasspathElements()
All T that belong to the classpath based on the module descriptor- Returns:
- the classpath elements, never
null
- See Also:
getPathElements()
-
setModulepathElements
void setModulepathElements(java.util.Map<T,ResolvePathsResult.ModuleNameSource> modulepathElements)
-
getModulepathElements
public java.util.Map<T,ResolvePathsResult.ModuleNameSource> getModulepathElements()
All T that belong to the modulepath, based on the module descriptor. For every T the source for the module name is added.- Returns:
- all modulepath elements, never
null
- See Also:
getPathElements()
-
setPathExceptions
void setPathExceptions(java.util.Map<T,java.lang.Exception> pathExceptions)
-
getPathExceptions
public java.util.Map<T,java.lang.Exception> getPathExceptions()
Map containing exceptions for every T which modulename resolution failed- Returns:
- the exceptions for every T, never
null
-
-