public static final class LibrariesNode.Builder extends Object
LibrariesNode
.Constructor and Description |
---|
Builder(Project project,
PropertyEvaluator eval,
UpdateHelper helper,
ReferenceHelper refHelper,
ClassPathSupport cs) |
Modifier and Type | Method and Description |
---|---|
LibrariesNode.Builder |
addClassPathIgnoreRefs(String... refs)
Adds references to ignore from libraries.
|
LibrariesNode.Builder |
addClassPathProperties(String... propNames)
Adds classpaths to display.
|
LibrariesNode.Builder |
addLibrariesNodeActions(Action... actions)
Adds actions to libraries node.
|
LibrariesNode.Builder |
addModulePathIgnoreRefs(String... refs)
Adds references to ignore from the module path.
|
LibrariesNode.Builder |
addModulePathProperties(String... props)
Adds module path properties.
|
LibrariesNode |
build()
Creates configured
LibrariesNode . |
LibrariesNode.Builder |
setBootPath(ClassPath bootPath)
Sets bootstrap libraries to display under the platform node.
|
LibrariesNode.Builder |
setExtraNodes(NodeList<LibrariesNode.Key> extraNodes)
Sets a factory to create additional nodes.
|
LibrariesNode.Builder |
setModuleInfoBasedPath(ClassPath moduleInfoBasedClassPath)
Sets module-info base module path.
|
LibrariesNode.Builder |
setModuleSourcePath(ClassPath moduleSourcePath)
Sets the module source path for multi module project.
|
LibrariesNode.Builder |
setName(String name)
Sets node name.
|
LibrariesNode.Builder |
setPlatformProperty(String platformProperty)
Sets platform property.
|
LibrariesNode.Builder |
setPlatformType(String platformType)
Sets platform type.
|
LibrariesNode.Builder |
setSourcePath(ClassPath sourcePath)
Sets the main source path for the
LibrariesNode . |
LibrariesNode.Builder |
setWebModuleElementName(String elementName)
Sets web module element.
|
public Builder(@NonNull Project project, @NonNull PropertyEvaluator eval, @NonNull UpdateHelper helper, @NonNull ReferenceHelper refHelper, @NonNull ClassPathSupport cs)
@NonNull public LibrariesNode.Builder setName(@NonNull String name)
name
- the node nameLibrariesNode.Builder
@NonNull public LibrariesNode.Builder addClassPathIgnoreRefs(@NonNull String... refs)
refs
- the references to ignoreLibrariesNode.Builder
@NonNull public LibrariesNode.Builder addClassPathProperties(@NonNull String... propNames)
propNames
- the names of properties holding the paths to be displayedLibrariesNode.Builder
@NonNull public LibrariesNode.Builder setPlatformType(@NonNull String platformType)
platformType
- the type of platform, by default "j2se"LibrariesNode.Builder
@NonNull public LibrariesNode.Builder setPlatformProperty(@NonNull String platformProperty)
platformProperty
- the property holding the reference on JavaPlatform
LibrariesNode.Builder
@NonNull public LibrariesNode.Builder setBootPath(@NonNull ClassPath bootPath)
JavaPlatform
's bootstrap libraries
this method can be used to override the shown JavaPlatform
's libraries.bootPath
- the libraries to showLibrariesNode.Builder
@NonNull public LibrariesNode.Builder addLibrariesNodeActions(@NonNull Action... actions)
actions
- the actions to be added.LibrariesNode.Builder
@NonNull public LibrariesNode.Builder setWebModuleElementName(@NonNull String elementName)
elementName
- the web module element nameLibrariesNode.Builder
@NonNull public LibrariesNode.Builder setExtraNodes(@NonNull NodeList<LibrariesNode.Key> extraNodes)
extraNodes
- the NodeList
to create additional nodesLibrariesNode.Builder
@NonNull public LibrariesNode.Builder setModuleInfoBasedPath(@NonNull ClassPath moduleInfoBasedClassPath)
moduleInfoBasedClassPath
- the effective module info based path used for
filtering the module path entries.LibrariesNode.Builder
@NonNull public LibrariesNode.Builder addModulePathProperties(@NonNull String... props)
props
- the properties to be addedLibrariesNode.Builder
@NonNull public LibrariesNode.Builder addModulePathIgnoreRefs(@NonNull String... refs)
refs
- the references to ignoreLibrariesNode.Builder
@NonNull public LibrariesNode.Builder setSourcePath(@NonNull ClassPath sourcePath)
LibrariesNode
.
The given source path is used as a hint for module-info lookup.sourcePath
- the source ClassPath
LibrariesNode.Builder
@NonNull public LibrariesNode.Builder setModuleSourcePath(@NonNull ClassPath moduleSourcePath)
moduleSourcePath
- the project module source pathLibrariesNode.Builder
@NonNull public LibrariesNode build()
LibrariesNode
.LibrariesNode
.