Record Class Ir.Temporal
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Temporal
- Enclosing class:
Ir
public static record Ir.Temporal(SourceSpan span, Ir.TemporalOp op, List<Ir.Exp> args)
extends Record
implements Ir.Exp
A temporal operator of the core:
X, F, G,
previous, once, historically on one formula,
U, W, since, triggered between two.-
Constructor Summary
ConstructorsConstructorDescriptionTemporal(SourceSpan span, Ir.TemporalOp op, List<Ir.Exp> args) Creates an instance of aTemporalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Temporal
Creates an instance of aTemporalrecord class.- Parameters:
span- the value for thespanrecord componentop- the value for theoprecord componentargs- the value for theargsrecord 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). -
span
Returns the value of thespanrecord component. -
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
args
-