Record Class Ir.Pattern
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Pattern
- Record Components:
span- the patternkind- the patternscope- where it holdsargs- the formulas of the pattern (p, orsandp), then those of the scope
- Enclosing class:
Ir
public static record Ir.Pattern(SourceSpan span, Ir.PatternKind kind, Ir.PatternScope scope, List<Ir.Exp> args)
extends Record
implements Ir.Exp
A behavioral pattern of Dwyer et al.'s catalogue, rich, e.g.,
never p between q and r or s must precede p.-
Constructor Summary
ConstructorsConstructorDescriptionPattern(SourceSpan span, Ir.PatternKind kind, Ir.PatternScope scope, List<Ir.Exp> args) Creates an instance of aPatternrecord 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.booleanisRich()kind()Returns the value of thekindrecord component.scope()Returns the value of thescoperecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isRich
-
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
-
kind
-
scope
-
args
-