Package ch.so.agi.mcp.constraint
Record Class SemanticConstraint.UntranslatedSetCondition
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.SemanticConstraint.UntranslatedSetCondition
- All Implemented Interfaces:
SemanticConstraint.SetCondition
- Enclosing interface:
SemanticConstraint
public static record SemanticConstraint.UntranslatedSetCondition(String reasonCode, String metamodelType, String text)
extends Record
implements SemanticConstraint.SetCondition
Explicit placeholder for SET-only AST nodes outside the currently executable SET IR.
This remains intentionally non-proof-capable. Unknown functions and geometry-aware SET semantics are surfaced explicitly instead of being approximated.
-
Constructor Summary
ConstructorsConstructorDescriptionUntranslatedSetCondition(String reasonCode, String metamodelType, String text) Creates an instance of aUntranslatedSetConditionrecord 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 themetamodelTyperecord component.Returns the value of thereasonCoderecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UntranslatedSetCondition
Creates an instance of aUntranslatedSetConditionrecord class.- Parameters:
reasonCode- the value for thereasonCoderecord componentmetamodelType- the value for themetamodelTyperecord componenttext- the value for thetextrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
metamodelType
Returns the value of themetamodelTyperecord component.- Returns:
- the value of the
metamodelTyperecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-