Package org.sonar.plugins.python.indexer
Enum Class PackageResolutionResult.ResolutionMethod
java.lang.Object
java.lang.Enum<PackageResolutionResult.ResolutionMethod>
org.sonar.plugins.python.indexer.PackageResolutionResult.ResolutionMethod
- All Implemented Interfaces:
Serializable,Comparable<PackageResolutionResult.ResolutionMethod>,Constable
- Enclosing class:
PackageResolutionResult
public static enum PackageResolutionResult.ResolutionMethod
extends Enum<PackageResolutionResult.ResolutionMethod>
How the package roots were resolved.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFallback to project base directoryResolved from conventional folders (src/, lib/)Resolved from both pyproject.toml and setup.pyResolved from pyproject.toml build configurationResolved from setup.py configurationResolved from sonar.sources property -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PYPROJECT_TOML
Resolved from pyproject.toml build configuration -
SETUP_PY
Resolved from setup.py configuration -
PYPROJECT_AND_SETUP_PY
Resolved from both pyproject.toml and setup.py -
SONAR_SOURCES
Resolved from sonar.sources property -
CONVENTIONAL_FOLDERS
Resolved from conventional folders (src/, lib/) -
BASE_DIR
Fallback to project base directory
-
-
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
-