Record Class AlloyGenerator.Mapped
java.lang.Object
java.lang.Record
org.clafer.alloy.AlloyGenerator.Mapped
- Record Components:
clafer- for a cardinality, the clafer's Alloy namespan- for a constraint, its span in the model's text
- Enclosing class:
AlloyGenerator
public static record AlloyGenerator.Mapped(long line, long column, long endLine, long endColumn, AlloyGenerator.Kind kind, String clafer, SourceSpan span)
extends Record
A region of the Alloy code (1-based lines and columns, as
mapLineCol gives them) and what it is the code of.-
Constructor Summary
ConstructorsConstructorDescriptionMapped(long line, long column, long endLine, long endColumn, AlloyGenerator.Kind kind, String clafer, SourceSpan span) Creates an instance of aMappedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclafer()Returns the value of theclaferrecord component.longcolumn()Returns the value of thecolumnrecord component.longReturns the value of theendColumnrecord component.longendLine()Returns the value of theendLinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.longline()Returns the value of thelinerecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mapped
public Mapped(long line, long column, long endLine, long endColumn, AlloyGenerator.Kind kind, String clafer, SourceSpan span) Creates an instance of aMappedrecord class.- Parameters:
line- the value for thelinerecord componentcolumn- the value for thecolumnrecord componentendLine- the value for theendLinerecord componentendColumn- the value for theendColumnrecord componentkind- the value for thekindrecord componentclafer- the value for theclaferrecord componentspan- the value for thespanrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
endLine
Returns the value of theendLinerecord component.- Returns:
- the value of the
endLinerecord component
-
endColumn
Returns the value of theendColumnrecord component.- Returns:
- the value of the
endColumnrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
clafer
-
span
-