Package com.android.build.api.transform
Enum Class QualifiedContent.Scope
- All Implemented Interfaces:
QualifiedContent.ScopeType,Serializable,Comparable<QualifiedContent.Scope>,Constable
- Enclosing interface:
- QualifiedContent
public static enum QualifiedContent.Scope
extends 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly the external librariesOnly the project (module) contentDeprecated.Local or remote dependencies that are provided-onlyOnly the sub-projects (other modules)Deprecated.local dependencies are now processed asEXTERNAL_LIBRARIESCode that is being tested by the current variant, including dependencies -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()A scope binary flag that will be used to encode directory names.static QualifiedContent.ScopeReturns the enum constant of this class with the specified name.static QualifiedContent.Scope[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.android.build.api.transform.QualifiedContent.ScopeType
name
-
Enum Constant Details
-
PROJECT
Only the project (module) content -
SUB_PROJECTS
Only the sub-projects (other modules) -
EXTERNAL_LIBRARIES
Only the external libraries -
TESTED_CODE
Code that is being tested by the current variant, including dependencies -
PROVIDED_ONLY
Local or remote dependencies that are provided-only -
PROJECT_LOCAL_DEPS
Deprecated.local dependencies are now processed asEXTERNAL_LIBRARIESOnly the project's local dependencies (local jars) -
SUB_PROJECTS_LOCAL_DEPS
Deprecated.local dependencies are now processed asEXTERNAL_LIBRARIESOnly the sub-projects's local dependencies (local jars).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Description copied from interface:QualifiedContent.ScopeTypeA scope binary flag that will be used to encode directory names. Must be unique.- Specified by:
getValuein interfaceQualifiedContent.ScopeType- Returns:
- a scope binary flag.
-
EXTERNAL_LIBRARIES