Module aya.base

Record Class SigRefFinder

java.lang.Object
java.lang.Record
org.aya.tyck.order.SigRefFinder
All Implemented Interfaces:
Consumer<Expr>, ExprConsumer, PatternConsumer

public record SigRefFinder(@NotNull kala.collection.mutable.MutableList<TyckUnit> references) extends Record implements ExprConsumer
Concrete version of RefFinder but only header is searched.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    SigRefFinder(@NotNull kala.collection.mutable.MutableList<TyckUnit> references)
    Creates an instance of a SigRefFinder record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(@NotNull TyckUnit sn)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    void
    pre(@NotNull Expr expr)
     
    @NotNull kala.collection.mutable.MutableList<TyckUnit>
    Returns the value of the references record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface org.aya.concrete.visitor.ExprConsumer

    accept, post

    Methods inherited from interface org.aya.concrete.visitor.PatternConsumer

    accept, post, pre
  • Constructor Details

    • SigRefFinder

      public SigRefFinder(@NotNull @NotNull kala.collection.mutable.MutableList<TyckUnit> references)
      Creates an instance of a SigRefFinder record class.
      Parameters:
      references - the value for the references record component
  • Method Details

    • accept

      public void accept(@NotNull @NotNull TyckUnit sn)
    • pre

      public void pre(@NotNull @NotNull Expr expr)
      Specified by:
      pre in interface ExprConsumer
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • references

      @NotNull public @NotNull kala.collection.mutable.MutableList<TyckUnit> references()
      Returns the value of the references record component.
      Returns:
      the value of the references record component