java.lang.Object
java.lang.Record
org.aya.core.visitor.TermFolder.RefFinder
- All Implemented Interfaces:
Function<Term,,@NotNull kala.collection.SeqView<Def>> TermFolder<@NotNull kala.collection.SeqView<Def>>
- Enclosing interface:
TermFolder<R>
public static record TermFolder.RefFinder(boolean withBody)
extends Record
implements TermFolder<@NotNull kala.collection.SeqView<Def>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.visitor.TermFolder
TermFolder.RefFinder, TermFolder.Usages -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TermFolder.RefFinderstatic final TermFolder.RefFinder -
Constructor Summary
ConstructorsConstructorDescriptionRefFinder(boolean withBody) Creates an instance of aRefFinderrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.SeqView<Def>apply(@NotNull GenericDef def) final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.SeqView<Def>final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.SeqView<Def>init()final StringtoString()Returns a string representation of this record class.booleanwithBody()Returns the value of thewithBodyrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.core.visitor.TermFolder
apply, fold, fold
-
Field Details
-
HEADER_ONLY
-
HEADER_AND_BODY
-
-
Constructor Details
-
RefFinder
public RefFinder(boolean withBody) Creates an instance of aRefFinderrecord class.- Parameters:
withBody- the value for thewithBodyrecord component
-
-
Method Details
-
init
- Specified by:
initin interfaceTermFolder<@NotNull kala.collection.SeqView<Def>>
-
fold
@NotNull public @NotNull kala.collection.SeqView<Def> fold(@NotNull @NotNull kala.collection.SeqView<Def> refs, @NotNull @NotNull AnyVar usage) - Specified by:
foldin interfaceTermFolder<@NotNull kala.collection.SeqView<Def>>
-
apply
-
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 with '=='. -
withBody
public boolean withBody()Returns the value of thewithBodyrecord component.- Returns:
- the value of the
withBodyrecord component
-