java.lang.Object
java.lang.Record
org.aya.concrete.stmt.decl.TeleDecl.BlockBody
- All Implemented Interfaces:
TeleDecl.FnBody
public static record TeleDecl.BlockBody(kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses)
extends Record
implements TeleDecl.FnBody
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBody(kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses) Creates an instance of aBlockBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionkala.collection.immutable.ImmutableSeq<Pattern.Clause>clauses()Returns the value of theclausesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map(@NotNull UnaryOperator<Expr> f, @NotNull UnaryOperator<Pattern.Clause> g) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockBody
Creates an instance of aBlockBodyrecord class.- Parameters:
clauses- the value for theclausesrecord component
-
-
Method Details
-
map
public TeleDecl.BlockBody map(@NotNull @NotNull UnaryOperator<Expr> f, @NotNull @NotNull UnaryOperator<Pattern.Clause> g) - Specified by:
mapin interfaceTeleDecl.FnBody
-
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). -
clauses
Returns the value of theclausesrecord component.- Returns:
- the value of the
clausesrecord component
-