sbt.inc

Relations

trait Relations extends AnyRef

Provides mappings between source files, generated classes (products), and binaries. Dependencies that are tracked include internal: a dependency on a source in the same compilation group (project), external: a dependency on a source in another compilation group (tracked as the name of the class), binary: a dependency on a class or jar file not generated by a source file in any tracked compilation group, inherited: a dependency that resulted from a public template inheriting, direct: any type of dependency, including inheritance.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Relations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def ++(o: Relations): Relations

    Concatenates the two relations.

    Concatenates the two relations. Acts naively, i.e., doesn't internalize external deps on added files.

  2. abstract def --(sources: Iterable[File]): Relations

    Drops all dependency mappings a->b where a is in sources.

    Drops all dependency mappings a->b where a is in sources. Acts naively, i.e., doesn't externalize internal deps on removed files.

  3. abstract def allBinaryDeps: Set[File]

    All files that are recorded as a binary dependency of a source file.

  4. abstract def allExternalDeps: Set[String]

    All files in another compilation group (project) that are recorded as a source dependency of a source file in this group.

  5. abstract def allInternalSrcDeps: Set[File]

    All files in this compilation group (project) that are recorded as a source dependency of a source file in this group.

  6. abstract def allProducts: Set[File]

    All products associated with sources.

  7. abstract def allSources: Set[File]

    All sources _with at least one product_ .

  8. abstract def binaryDep: Relation[File, File]

    The dependency relation between internal sources and binaries.

  9. abstract def binaryDeps(src: File): Set[File]

    The binary dependencies for the source file src.

  10. abstract def classNames(src: File): Set[String]

    Fully qualified names of classes generated from source file src.

  11. abstract def classes: Relation[File, String]

    The relation between a source file and the fully qualified names of classes generated from it.

  12. abstract def definesClass(name: String): Set[File]

    Source files that generated a class with the given fully qualified name.

    Source files that generated a class with the given fully qualified name. This is typically a set containing a single file.

  13. abstract def direct: Source

    The dependency relations between sources.

    The dependency relations between sources. These include both direct and inherited dependencies.

  14. abstract def externalDep: Relation[File, String]

    The dependency relation between internal and external sources.

    The dependency relation between internal and external sources. This includes both direct and inherited dependencies.

  15. abstract def externalDeps(src: File): Set[String]

    External source dependencies that internal source file src depends on.

    External source dependencies that internal source file src depends on. This includes both direct and inherited dependencies.

  16. abstract def internalSrcDep: Relation[File, File]

    The dependency relation between internal sources.

    The dependency relation between internal sources. This includes both direct and inherited dependencies.

  17. abstract def internalSrcDeps(src: File): Set[File]

    Internal source dependencies for src.

    Internal source dependencies for src. This includes both direct and inherited dependencies.

  18. abstract def produced(prod: File): Set[File]

    The source files that generated class file prod.

    The source files that generated class file prod. This is typically a set containing a single file.

  19. abstract def products(src: File): Set[File]

    The classes that were generated for source file src.

  20. abstract def publicInherited: Source

    The inheritance dependency relations between sources.

  21. abstract def srcProd: Relation[File, File]

    The relation between internal sources and generated class files.

  22. abstract def usesBinary(dep: File): Set[File]

    The source files that depend on binary file dep.

  23. abstract def usesExternal(dep: String): Set[File]

    Internal source dependencies that depend on external source file dep.

    Internal source dependencies that depend on external source file dep. This includes both direct and inherited dependencies.

  24. abstract def usesInternalSrc(dep: File): Set[File]

    Internal source files that depend on internal source dep.

    Internal source files that depend on internal source dep. This includes both direct and inherited dependencies.

  25. abstract def addBinaryDep(src: File, dependsOn: File): Relations

    Records internal source file src depending on a dependency binary dependency dependsOn.

    Records internal source file src depending on a dependency binary dependency dependsOn.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.8) Record all binary dependencies using addBinaryDeps.

  26. abstract def addExternalDep(src: File, dependsOn: String, inherited: Boolean): Relations

    Records internal source file src as dependending on dependsOn.

    Records internal source file src as dependending on dependsOn. If this dependency is introduced by an inheritance relation, inherited is set to true. Note that in this case, the dependency is also registered as a direct dependency.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.8) Record all external dependencies using addExternalDeps.

  27. abstract def addInternalSrcDeps(src: File, directDependsOn: Iterable[File], inheritedDependsOn: Iterable[File]): Relations

    Records internal source file src as having direct dependencies on internal source files directDependsOn and inheritance dependencies on inheritedDependsOn.

    Records internal source file src as having direct dependencies on internal source files directDependsOn and inheritance dependencies on inheritedDependsOn. Everything in inheritedDependsOn must be included in directDependsOn; this method does not automatically record direct dependencies like addExternalDep does.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.8) Record all internal dependencies using addInternalSrcDeps(File, Iterable[InternalDependencies]).

  28. abstract def addProduct(src: File, prod: File, name: String): Relations

    Records internal source file src as generating class file prod with top-level class name.

    Records internal source file src as generating class file prod with top-level class name.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.8) Record all products using addProducts.

  29. abstract def groupBy[K](f: (File) ⇒ K): Map[K, Relations]

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) OK to remove in 0.14

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addSource(src: File, products: Iterable[(File, String)], internalDeps: Iterable[InternalDependency], externalDeps: Iterable[ExternalDependency], binaryDeps: Iterable[(File, String, Stamp)]): Relations

    Records that the file src generates products products, has internal dependencies internalDeps, has external dependencies externalDeps and binary dependencies binaryDeps.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped