Class VisitorState
- java.lang.Object
-
- tech.kronicle.plugins.gradle.internal.groovyscriptvisitors.VisitorState
-
public final class VisitorState extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisitorState.VisitorStateBuilder
-
Constructor Summary
Constructors Constructor Description VisitorState(ProcessPhase processPhase, ProjectMode projectMode, java.nio.file.Path codebaseDir, java.nio.file.Path buildFile, java.nio.file.Path applyFile, java.util.Set<Import> imports, InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> buildscriptSoftwareRepositories, InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> softwareRepositories, InheritingHashSet<tech.kronicle.sdk.models.Software> software, InheritingHashMap<java.lang.String,java.lang.String> properties, InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>> dependencyVersions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VisitorState.VisitorStateBuilderbuilder()booleanequals(java.lang.Object o)java.nio.file.PathgetApplyFile()java.nio.file.PathgetBuildFile()InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository>getBuildscriptSoftwareRepositories()java.nio.file.PathgetCodebaseDir()InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>>getDependencyVersions()java.util.Set<Import>getImports()ProcessPhasegetProcessPhase()ProjectModegetProjectMode()InheritingHashMap<java.lang.String,java.lang.String>getProperties()InheritingHashSet<tech.kronicle.sdk.models.Software>getSoftware()InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository>getSoftwareRepositories()inthashCode()java.lang.StringtoString()VisitorStatewithApplyFile(java.nio.file.Path applyFile)VisitorStatewithBuildFile(java.nio.file.Path buildFile)VisitorStatewithBuildscriptSoftwareRepositories(InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> buildscriptSoftwareRepositories)VisitorStatewithCodebaseDir(java.nio.file.Path codebaseDir)VisitorStatewithDependencyVersions(InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>> dependencyVersions)VisitorStatewithImports(java.util.Set<Import> imports)VisitorStatewithProcessPhase(ProcessPhase processPhase)VisitorStatewithProjectMode(ProjectMode projectMode)VisitorStatewithProperties(InheritingHashMap<java.lang.String,java.lang.String> properties)VisitorStatewithSoftware(InheritingHashSet<tech.kronicle.sdk.models.Software> software)VisitorStatewithSoftwareRepositories(InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> softwareRepositories)
-
-
-
Constructor Detail
-
VisitorState
public VisitorState(ProcessPhase processPhase, ProjectMode projectMode, java.nio.file.Path codebaseDir, java.nio.file.Path buildFile, java.nio.file.Path applyFile, java.util.Set<Import> imports, InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> buildscriptSoftwareRepositories, InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> softwareRepositories, InheritingHashSet<tech.kronicle.sdk.models.Software> software, InheritingHashMap<java.lang.String,java.lang.String> properties, InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>> dependencyVersions)
-
-
Method Detail
-
builder
public static VisitorState.VisitorStateBuilder builder()
-
getProcessPhase
public ProcessPhase getProcessPhase()
-
getProjectMode
public ProjectMode getProjectMode()
-
getCodebaseDir
public java.nio.file.Path getCodebaseDir()
-
getBuildFile
public java.nio.file.Path getBuildFile()
-
getApplyFile
public java.nio.file.Path getApplyFile()
-
getImports
public java.util.Set<Import> getImports()
-
getBuildscriptSoftwareRepositories
public InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> getBuildscriptSoftwareRepositories()
-
getSoftwareRepositories
public InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> getSoftwareRepositories()
-
getSoftware
public InheritingHashSet<tech.kronicle.sdk.models.Software> getSoftware()
-
getProperties
public InheritingHashMap<java.lang.String,java.lang.String> getProperties()
-
getDependencyVersions
public InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>> getDependencyVersions()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withProcessPhase
public VisitorState withProcessPhase(ProcessPhase processPhase)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProjectMode
public VisitorState withProjectMode(ProjectMode projectMode)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCodebaseDir
public VisitorState withCodebaseDir(java.nio.file.Path codebaseDir)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBuildFile
public VisitorState withBuildFile(java.nio.file.Path buildFile)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withApplyFile
public VisitorState withApplyFile(java.nio.file.Path applyFile)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withImports
public VisitorState withImports(java.util.Set<Import> imports)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBuildscriptSoftwareRepositories
public VisitorState withBuildscriptSoftwareRepositories(InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> buildscriptSoftwareRepositories)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSoftwareRepositories
public VisitorState withSoftwareRepositories(InheritingHashSet<tech.kronicle.sdk.models.SoftwareRepository> softwareRepositories)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSoftware
public VisitorState withSoftware(InheritingHashSet<tech.kronicle.sdk.models.Software> software)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProperties
public VisitorState withProperties(InheritingHashMap<java.lang.String,java.lang.String> properties)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDependencyVersions
public VisitorState withDependencyVersions(InheritingHashMap<java.lang.String,java.util.Set<java.lang.String>> dependencyVersions)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-