Class VisitorState


  • public final class VisitorState
    extends java.lang.Object
    • 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

      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withProcessPhase

        public VisitorState withProcessPhase​(ProcessPhase processPhase)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withProjectMode

        public VisitorState withProjectMode​(ProjectMode projectMode)
        Returns:
        a clone of this object, except with this updated property (returns this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if 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 this if an identical value is passed).