Record Class JsonPath
java.lang.Object
java.lang.Record
io.jenkins.plugins.configsplice.engine.json.JsonPath
A parsed JSON property path (SRS section 6.2).
Paths are compared structurally, so Serilog.'MinimumLevel.Default' and a path built
programmatically from the same two steps are equal. That is what makes duplicate-path detection
(SRS section 4.6) work on canonical form rather than on the raw string the user typed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSelects a zero-based array element.static final recordSelects an object property by exact, case-sensitive name.static interfaceOne navigation step: either an object property or a zero-based array index. -
Constructor Summary
ConstructorsConstructorDescriptionJsonPath(List<JsonPath.Step> steps) Creates an instance of aJsonPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionRenders the path back into canonical source form, quoting members only where the grammar requires it.Debug helper listing each step in order; used by test failure messages.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.steps()Returns the value of thestepsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
JsonPath
Creates an instance of aJsonPathrecord class.- Parameters:
steps- the value for thestepsrecord component
-
-
Method Details
-
canonical
Renders the path back into canonical source form, quoting members only where the grammar requires it. Used in diagnostics; never contains a value. -
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. -
describeSteps
Debug helper listing each step in order; used by test failure messages. -
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). -
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-