QualifiedContent.Scope

public enum QualifiedContent.Scope implements QualifiedContent.ScopeType


The scope of the content.

This indicates what the content represents, so that Transforms can apply to only part(s) of the classes or resources that the build manipulates.

Summary

Enum Values

EXTERNAL_LIBRARIES

Only the external libraries

PROJECT

Only the project (module) content

PROJECT_LOCAL_DEPS

This enum value is deprecated.

local dependencies are now processed as EXTERNAL_LIBRARIES

PROVIDED_ONLY

Local or remote dependencies that are provided-only

SUB_PROJECTS

Only the sub-projects (other modules)

SUB_PROJECTS_LOCAL_DEPS

This enum value is deprecated.

local dependencies are now processed as EXTERNAL_LIBRARIES

TESTED_CODE

Code that is being tested by the current variant, including dependencies

Public fields

final int

Public methods

int

A scope binary flag that will be used to encode directory names.

static QualifiedContent.Scope

Returns the enum constant of this type with the specified name.

static QualifiedContent.Scope[]

Returns an array containing the constants of this enum type, in the order they're declared.

Inherited methods

From com.android.build.api.transform.QualifiedContent.ScopeType
abstract String

Scope name, readable by humans.

Enum Values

EXTERNAL_LIBRARIES

QualifiedContent.Scope QualifiedContent.Scope.EXTERNAL_LIBRARIES

Only the external libraries

PROJECT

QualifiedContent.Scope QualifiedContent.Scope.PROJECT

Only the project (module) content

PROJECT_LOCAL_DEPS

QualifiedContent.Scope QualifiedContent.Scope.PROJECT_LOCAL_DEPS

Only the project's local dependencies (local jars)

PROVIDED_ONLY

QualifiedContent.Scope QualifiedContent.Scope.PROVIDED_ONLY

Local or remote dependencies that are provided-only

SUB_PROJECTS

QualifiedContent.Scope QualifiedContent.Scope.SUB_PROJECTS

Only the sub-projects (other modules)

SUB_PROJECTS_LOCAL_DEPS

QualifiedContent.Scope QualifiedContent.Scope.SUB_PROJECTS_LOCAL_DEPS

Only the sub-projects's local dependencies (local jars).

TESTED_CODE

QualifiedContent.Scope QualifiedContent.Scope.TESTED_CODE

Code that is being tested by the current variant, including dependencies

Public fields

value

public final int value

Public methods

getValue

public int getValue()

A scope binary flag that will be used to encode directory names. Must be unique.

Returns
int

a scope binary flag.

valueOf

public static QualifiedContent.Scope valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
QualifiedContent.Scope

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static QualifiedContent.Scope[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
QualifiedContent.Scope[]

an array containing the constants of this enum type, in the order they're declared