Interface HasClasspathEntries

    • Method Detail

      • getTransitiveClasspaths

        com.google.common.collect.ImmutableSet<SourcePath> getTransitiveClasspaths()
        Returns:
        Classpath entries for this rule and its dependencies. e.g. If the rule represents a java library, then these entries will be passed to javac's -classpath flag in order to build a jar associated with this rule.
      • getTransitiveClasspathDeps

        com.google.common.collect.ImmutableSet<JavaLibrary> getTransitiveClasspathDeps()
        Returns:
        A set of rules contributing classpath entries for this rule and its dependencies.
      • getImmediateClasspaths

        com.google.common.collect.ImmutableSet<SourcePath> getImmediateClasspaths()
        Returns the classpaths for only this rule, not its deps.

        Used to generate the value of getTransitiveClasspaths().

      • getOutputClasspaths

        com.google.common.collect.ImmutableSet<SourcePath> getOutputClasspaths()
        Returns:
        Classpath entries that this rule will contribute when it is used as a dependency. e.g. If the rule represents a java library, then these entries must be passed to javac's -classpath flag in order to compile rules that depend on this rule. This is a superset of getImmediateClasspaths which also contains the classpath entries of any exported deps.