java.lang.Object
java.lang.Record
org.aya.core.repr.TermShape.CtorCall
- All Implemented Interfaces:
TermShape,TermShape.Callable
- Enclosing interface:
TermShape
public static record TermShape.CtorCall(CodeShape.MomentId dataId, CodeShape.GlobalId ctorId, @NotNull kala.collection.immutable.ImmutableSeq<TermShape> args)
extends Record
implements TermShape.Callable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.repr.TermShape
TermShape.Any, TermShape.Callable, TermShape.CtorCall, TermShape.NameCall, TermShape.ShapeCall, TermShape.Sort -
Constructor Summary
ConstructorsConstructorDescriptionCtorCall(CodeShape.MomentId dataId, CodeShape.GlobalId ctorId, @NotNull kala.collection.immutable.ImmutableSeq<TermShape> args) Creates an instance of aCtorCallrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<TermShape>args()Returns the value of theargsrecord component.ctorId()Returns the value of thectorIdrecord component.dataId()Returns the value of thedataIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CtorCall
public CtorCall(@NotNull CodeShape.MomentId dataId, @NotNull CodeShape.GlobalId ctorId, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<TermShape> args) Creates an instance of aCtorCallrecord class.- Parameters:
dataId- the value for thedataIdrecord componentctorId- the value for thectorIdrecord componentargs- the value for theargsrecord component
-
-
Method Details
-
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). -
dataId
Returns the value of thedataIdrecord component.- Returns:
- the value of the
dataIdrecord component
-
ctorId
Returns the value of thectorIdrecord component.- Returns:
- the value of the
ctorIdrecord component
-
args
Returns the value of theargsrecord component.- Specified by:
argsin interfaceTermShape.Callable- Returns:
- the value of the
argsrecord component
-