Module aya.ide

Record Class Folding

java.lang.Object
java.lang.Record
org.aya.ide.action.Folding
All Implemented Interfaces:
Consumer<org.aya.concrete.stmt.Stmt>, Function<org.aya.concrete.Expr,org.aya.concrete.Expr>, UnaryOperator<org.aya.concrete.Expr>, org.aya.concrete.visitor.EndoExpr, org.aya.concrete.visitor.EndoPattern, org.aya.concrete.visitor.StmtConsumer, SyntaxDeclAction

public record Folding(@NotNull kala.collection.mutable.MutableList<Folding.FoldingArea> foldingRanges) extends Record implements SyntaxDeclAction
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    accept(@NotNull org.aya.concrete.stmt.Stmt stmt)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull kala.collection.mutable.MutableList<Folding.FoldingArea>
    Returns the value of the foldingRanges record component.
    final int
    Returns a hash code value for this object.
    static @NotNull kala.collection.immutable.ImmutableSeq<Folding.FoldingArea>
    invoke(@NotNull org.aya.cli.library.source.LibrarySource source)
     
    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.EndoExpr

    apply, post, pre

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

    apply, post, pre

    Methods inherited from interface java.util.function.Function

    andThen, compose

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

    visitTelescopic
  • Constructor Details

    • Folding

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

    • invoke

      @NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<Folding.FoldingArea> invoke(@NotNull @NotNull org.aya.cli.library.source.LibrarySource source)
    • accept

      public void accept(@NotNull @NotNull org.aya.concrete.stmt.Stmt stmt)
      Specified by:
      accept in interface Consumer<org.aya.concrete.stmt.Stmt>
      Specified by:
      accept in interface org.aya.concrete.visitor.StmtConsumer
      Specified by:
      accept in interface SyntaxDeclAction
    • 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.
    • foldingRanges

      @NotNull public @NotNull kala.collection.mutable.MutableList<Folding.FoldingArea> foldingRanges()
      Returns the value of the foldingRanges record component.
      Returns:
      the value of the foldingRanges record component