Package org.sonar.plugins.python.indexer
Record Class PyProjectExtractionResult
java.lang.Object
java.lang.Record
org.sonar.plugins.python.indexer.PyProjectExtractionResult
- Record Components:
configRoots- The extracted source rootsbuildSystem- The build system that provided the source roots
public record PyProjectExtractionResult(ConfigSourceRoots configRoots, PackageResolutionResult.BuildSystem buildSystem)
extends Record
Result of extracting source roots from pyproject.toml, including the build system detected.
-
Constructor Summary
ConstructorsConstructorDescriptionPyProjectExtractionResult(ConfigSourceRoots configRoots, PackageResolutionResult.BuildSystem buildSystem) Creates an instance of aPyProjectExtractionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildSystemrecord component.Returns the value of theconfigRootsrecord component.static PyProjectExtractionResultfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasRoots()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PyProjectExtractionResult
public PyProjectExtractionResult(ConfigSourceRoots configRoots, PackageResolutionResult.BuildSystem buildSystem) Creates an instance of aPyProjectExtractionResultrecord class.- Parameters:
configRoots- the value for theconfigRootsrecord componentbuildSystem- the value for thebuildSystemrecord component
-
-
Method Details
-
empty
-
hasRoots
public boolean hasRoots() -
relativeRoots
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
configRoots
Returns the value of theconfigRootsrecord component.- Returns:
- the value of the
configRootsrecord component
-
buildSystem
Returns the value of thebuildSystemrecord component.- Returns:
- the value of the
buildSystemrecord component
-