Package ch.so.agi.mcp.constraint
Record Class SemanticConstraint.AllObjects
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.SemanticConstraint.AllObjects
- All Implemented Interfaces:
SemanticConstraint.ObjectSetExpression
- Enclosing interface:
SemanticConstraint
public static record SemanticConstraint.AllObjects(String contextFqn, @Nullable String baseFqn, List<String> restrictedToFqns)
extends Record
implements SemanticConstraint.ObjectSetExpression
Typed form of ili2c's
Objects AST node, rendered by INTERLIS as ALL.
The base and RESTRICTION metadata are preserved even though the first automatic proof slice intentionally supports only plain ALL. This avoids losing semantic information while keeping proof support conservative.
-
Constructor Summary
ConstructorsConstructorDescriptionAllObjects(String contextFqn, @Nullable String baseFqn, List<String> restrictedToFqns) Creates an instance of aAllObjectsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringbaseFqn()Returns the value of thebaseFqnrecord component.Returns the value of thecontextFqnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanplain()Returns the value of therestrictedToFqnsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AllObjects
Creates an instance of aAllObjectsrecord class.- Parameters:
contextFqn- the value for thecontextFqnrecord componentbaseFqn- the value for thebaseFqnrecord componentrestrictedToFqns- the value for therestrictedToFqnsrecord component
-
-
Method Details
-
plain
public boolean plain() -
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). -
contextFqn
Returns the value of thecontextFqnrecord component.- Returns:
- the value of the
contextFqnrecord component
-
baseFqn
Returns the value of thebaseFqnrecord component.- Returns:
- the value of the
baseFqnrecord component
-
restrictedToFqns
Returns the value of therestrictedToFqnsrecord component.- Returns:
- the value of the
restrictedToFqnsrecord component
-