Class SbtBuildTarget


  • public class SbtBuildTarget
    extends java.lang.Object
    `SbtBuildTarget` is a basic data structure that contains sbt-specific metadata for providing editor support for sbt build files. For example, say we have a project in `/foo/bar` defining projects `A` and `B` and two meta builds `M1` (defined in `/foo/bar/project`) and `M2` (defined in `/foo/bar/project/project`). The sbt build target for `M1` will have `A` and `B` as the defined targets and `M2` as the parent. Similarly, the sbt build target for `M2` will have `M1` as the defined target and no parent. Clients can use this information to reconstruct the tree of sbt meta builds. The `parent` information can be defined from `children` but it's provided by the server to simplify the data processing on the client side.
    • Constructor Detail

      • SbtBuildTarget

        public SbtBuildTarget​(java.lang.String sbtVersion,
                              java.util.List<java.lang.String> autoImports,
                              ScalaBuildTarget scalaBuildTarget,
                              java.util.List<BuildTargetIdentifier> children)
    • Method Detail

      • getSbtVersion

        @Pure
        public java.lang.String getSbtVersion()
      • setSbtVersion

        public void setSbtVersion​(java.lang.String sbtVersion)
      • getAutoImports

        @Pure
        public java.util.List<java.lang.String> getAutoImports()
      • setAutoImports

        public void setAutoImports​(java.util.List<java.lang.String> autoImports)
      • setScalaBuildTarget

        public void setScalaBuildTarget​(ScalaBuildTarget scalaBuildTarget)
      • toString

        @Pure
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        @Pure
        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object