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 -
Constructor Summary
ConstructorsConstructorDescriptionFolding(@NotNull kala.collection.mutable.MutableList<Folding.FoldingArea> foldingRanges) Creates an instance of aFoldingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(@NotNull org.aya.concrete.stmt.Stmt stmt) final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.mutable.MutableList<Folding.FoldingArea>Returns the value of thefoldingRangesrecord component.final inthashCode()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 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.concrete.visitor.EndoExpr
apply, post, preMethods inherited from interface org.aya.concrete.visitor.EndoPattern
apply, post, preMethods 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 aFoldingrecord class.- Parameters:
foldingRanges- the value for thefoldingRangesrecord 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:
acceptin interfaceConsumer<org.aya.concrete.stmt.Stmt>- Specified by:
acceptin interfaceorg.aya.concrete.visitor.StmtConsumer- Specified by:
acceptin interfaceSyntaxDeclAction
-
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). -
foldingRanges
Returns the value of thefoldingRangesrecord component.- Returns:
- the value of the
foldingRangesrecord component
-