Package io.karatelabs.core
Record Class StepUtils.ParsedFeaturePath
java.lang.Object
java.lang.Record
io.karatelabs.core.StepUtils.ParsedFeaturePath
- Enclosing class:
StepUtils
public static record StepUtils.ParsedFeaturePath(String path, String tagSelector, boolean sameFile, Set<Integer> lineFilters)
extends Record
Parsed result of a feature path with optional tag selector or line filter.
Used by both StepExecutor (call keyword) and ScenarioRuntime (callSingle).
lineFilters is non-null only for file.feature:N(:N)* form.-
Constructor Summary
ConstructorsConstructorDescriptionParsedFeaturePath(String path, String tagSelector, boolean sameFile, Set<Integer> lineFilters) Creates an instance of aParsedFeaturePathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelineFiltersrecord component.path()Returns the value of thepathrecord component.booleansameFile()Returns the value of thesameFilerecord component.Returns the value of thetagSelectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedFeaturePath
public ParsedFeaturePath(String path, String tagSelector, boolean sameFile, Set<Integer> lineFilters) Creates an instance of aParsedFeaturePathrecord class.- Parameters:
path- the value for thepathrecord componenttagSelector- the value for thetagSelectorrecord componentsameFile- the value for thesameFilerecord componentlineFilters- the value for thelineFiltersrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
tagSelector
Returns the value of thetagSelectorrecord component.- Returns:
- the value of the
tagSelectorrecord component
-
sameFile
public boolean sameFile()Returns the value of thesameFilerecord component.- Returns:
- the value of the
sameFilerecord component
-
lineFilters
Returns the value of thelineFiltersrecord component.- Returns:
- the value of the
lineFiltersrecord component
-