java.lang.Object
java.lang.Record
org.aya.core.repr.ShapeMatcher.Captures
- All Implemented Interfaces:
org.aya.util.RepoLike<ShapeMatcher.Captures>
- Enclosing class:
ShapeMatcher
public static record ShapeMatcher.Captures(@NotNull kala.collection.mutable.MutableMap<CodeShape.MomentId,AnyVar> map, @NotNull kala.value.MutableValue<ShapeMatcher.Captures> future)
extends Record
implements org.aya.util.RepoLike<ShapeMatcher.Captures>
-
Constructor Summary
ConstructorsConstructorDescriptionCaptures(@NotNull kala.collection.mutable.MutableMap<CodeShape.MomentId, AnyVar> map, @NotNull kala.value.MutableValue<ShapeMatcher.Captures> future) Creates an instance of aCapturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ShapeMatcher.Capturescreate()voiddiscard()final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.immutable.ImmutableMap<CodeShape.GlobalId,DefVar<?, ?>> voidfork()@NotNull kala.value.MutableValue<ShapeMatcher.Captures>future()Returns the value of thefuturerecord component.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableMap<CodeShape.MomentId,AnyVar> map()Returns the value of themaprecord component.voidmerge()voidput(@NotNull CodeShape.MomentId id, @NotNull AnyVar var) @NotNull AnyVarresolve(@NotNull CodeShape.MomentId id) voidsetDownstream(@Nullable ShapeMatcher.Captures downstream) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.util.RepoLike
fork
-
Constructor Details
-
Captures
public Captures(@NotNull @NotNull kala.collection.mutable.MutableMap<CodeShape.MomentId, AnyVar> map, @NotNull @NotNull kala.value.MutableValue<ShapeMatcher.Captures> future) Creates an instance of aCapturesrecord class.- Parameters:
map- the value for themaprecord componentfuture- the value for thefuturerecord component
-
-
Method Details
-
create
-
extractGlobal
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<CodeShape.GlobalId,DefVar<?, extractGlobal()?>> -
setDownstream
- Specified by:
setDownstreamin interfaceorg.aya.util.RepoLike<ShapeMatcher.Captures>
-
fork
public void fork() -
discard
public void discard() -
merge
public void merge()- Specified by:
mergein interfaceorg.aya.util.RepoLike<ShapeMatcher.Captures>
-
resolve
-
put
-
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). -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-
future
Returns the value of thefuturerecord component.- Returns:
- the value of the
futurerecord component
-