Interface QueryTarget

  • All Known Implementing Classes:
    QueryBuildTarget, QueryFileTarget, UnconfiguredBuildTarget

    public interface QueryTarget
    Currently, this is a marker interface, but given the actual implementations of this interface, it would be more accurate to represent it as an algebraic data type:
     sealed class QueryTarget {
       data class BuildQueryTarget(val buildTarget: BuildTarget) : QueryTarget()
       data class QueryFileTarget(val path: SourcePath) : QueryTarget()

    Implementors of this class MUST provide their own implementation of Object.toString() so that compare(QueryTarget, QueryTarget) works as expected.