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

    Constructors
    Constructor
    Description
    AllObjects(String contextFqn, @Nullable String baseFqn, List<String> restrictedToFqns)
    Creates an instance of a AllObjects record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Returns the value of the baseFqn record component.
    Returns the value of the contextFqn record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
     
    Returns the value of the restrictedToFqns record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AllObjects

      public AllObjects(String contextFqn, @Nullable String baseFqn, List<String> restrictedToFqns)
      Creates an instance of a AllObjects record class.
      Parameters:
      contextFqn - the value for the contextFqn record component
      baseFqn - the value for the baseFqn record component
      restrictedToFqns - the value for the restrictedToFqns record component
  • Method Details

    • plain

      public boolean plain()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contextFqn

      public String contextFqn()
      Returns the value of the contextFqn record component.
      Returns:
      the value of the contextFqn record component
    • baseFqn

      public @Nullable String baseFqn()
      Returns the value of the baseFqn record component.
      Returns:
      the value of the baseFqn record component
    • restrictedToFqns

      public List<String> restrictedToFqns()
      Returns the value of the restrictedToFqns record component.
      Returns:
      the value of the restrictedToFqns record component