Record Class OperatorCallConfig
java.lang.Object
java.lang.Record
ca.mcscert.jpipe.operators.OperatorCallConfig
public record OperatorCallConfig(String resultName, String operatorName, List<String> sourceNames, Map<String,String> arguments, SourceLocation location, ModelKind declaredKind)
extends Record
Describes a single operator call: what result to produce, which operator to
invoke, the source models, call-site arguments, source location, and the
declared result kind.
The compact constructor defensively copies sourceNames and
arguments so that the record is immutable even when built from
mutable collections.
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorCallConfig(String resultName, String operatorName, List<String> sourceNames, Map<String, String> arguments, SourceLocation location, ModelKind declaredKind) Creates an instance of aOperatorCallConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.Returns the value of thedeclaredKindrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of theoperatorNamerecord component.Returns the value of theresultNamerecord component.Returns the value of thesourceNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperatorCallConfig
public OperatorCallConfig(String resultName, String operatorName, List<String> sourceNames, Map<String, String> arguments, SourceLocation location, ModelKind declaredKind) Creates an instance of aOperatorCallConfigrecord class.- Parameters:
resultName- the value for theresultNamerecord componentoperatorName- the value for theoperatorNamerecord componentsourceNames- the value for thesourceNamesrecord componentarguments- the value for theargumentsrecord componentlocation- the value for thelocationrecord componentdeclaredKind- the value for thedeclaredKindrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
resultName
Returns the value of theresultNamerecord component.- Returns:
- the value of the
resultNamerecord component
-
operatorName
Returns the value of theoperatorNamerecord component.- Returns:
- the value of the
operatorNamerecord component
-
sourceNames
-
arguments
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
declaredKind
Returns the value of thedeclaredKindrecord component.- Returns:
- the value of the
declaredKindrecord component
-