Record Class GuardCouplingReader.GuardCoupling
java.lang.Object
java.lang.Record
org.ek9lang.compiler.symbolic.GuardCouplingReader.GuardCoupling
- Record Components:
paramIndexes- the 0-based positions of the parameters referenced, ascendingfieldPaths- dotted paths referenced through a parameter (widget.colour), in first-appearance order; empty when the condition reads no fieldguardText- the condition's source text, for provenance and labellingline- the source line the innermost condition starts on, 0 when unknown
- Enclosing class:
GuardCouplingReader
public static record GuardCouplingReader.GuardCoupling(List<Integer> paramIndexes, List<String> fieldPaths, String guardText, int line)
extends Record
Parameters, or fields of one parameter, that a condition (and its enclosing conditions) test
together, with the provenance needed to re-check it later.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintarity()The coupling's strength over whole parameters.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldPathsrecord component.The distinct field paths rooted atparameterName, ascending — the dimensions a FIELD-level interaction should combine.Returns the value of theguardTextrecord component.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.Returns the value of theparamIndexesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuardCoupling
public GuardCoupling(List<Integer> paramIndexes, List<String> fieldPaths, String guardText, int line) Creates an instance of aGuardCouplingrecord class.- Parameters:
paramIndexes- the value for theparamIndexesrecord componentfieldPaths- the value for thefieldPathsrecord componentguardText- the value for theguardTextrecord componentline- the value for thelinerecord component
-
-
Method Details
-
arity
public int arity()The coupling's strength over whole parameters. -
fieldsOf
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
paramIndexes
Returns the value of theparamIndexesrecord component.- Returns:
- the value of the
paramIndexesrecord component
-
fieldPaths
Returns the value of thefieldPathsrecord component.- Returns:
- the value of the
fieldPathsrecord component
-
guardText
-
line
-