Module aya.ide

Record Class InlayHints

java.lang.Object
java.lang.Record
org.aya.ide.action.InlayHints
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, SyntaxNodeAction<XYXY>, SyntaxNodeAction.Ranged

public record InlayHints(@NotNull org.aya.util.prettier.PrettierOptions options, @NotNull XYXY location, @NotNull kala.collection.mutable.MutableList<InlayHints.Hint> hints) extends Record implements SyntaxNodeAction.Ranged
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    Nested classes/interfaces inherited from interface org.aya.ide.syntax.SyntaxNodeAction

    SyntaxNodeAction.Cursor, SyntaxNodeAction.Ranged
  • Constructor Summary

    Constructors
    Constructor
    Description
    InlayHints(@NotNull org.aya.util.prettier.PrettierOptions options, @NotNull XYXY location, @NotNull kala.collection.mutable.MutableList<InlayHints.Hint> hints)
    Creates an instance of a InlayHints record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull kala.collection.mutable.MutableList<InlayHints.Hint>
    Returns the value of the hints record component.
    static @NotNull kala.collection.immutable.ImmutableSeq<InlayHints.Hint>
    invoke(@NotNull org.aya.util.prettier.PrettierOptions options, @NotNull org.aya.cli.library.source.LibrarySource source, @NotNull XYXY range)
     
    @NotNull XYXY
    Returns the value of the location record component.
    @NotNull org.aya.util.prettier.PrettierOptions
    Returns the value of the options record component.
    @NotNull org.aya.concrete.Pattern
    pre(@NotNull org.aya.concrete.Pattern pattern)
     
    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

    post, pre

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

    apply, post

    Methods inherited from interface java.util.function.Function

    andThen, compose

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

    visitTelescopic

    Methods inherited from interface org.aya.ide.syntax.SyntaxNodeAction

    accept, apply

    Methods inherited from interface org.aya.ide.syntax.SyntaxNodeAction.Ranged

    accept
  • Constructor Details

    • InlayHints

      public InlayHints(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options, @NotNull @NotNull XYXY location, @NotNull @NotNull kala.collection.mutable.MutableList<InlayHints.Hint> hints)
      Creates an instance of a InlayHints record class.
      Parameters:
      options - the value for the options record component
      location - the value for the location record component
      hints - the value for the hints record component
  • Method Details

    • invoke

      @NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<InlayHints.Hint> invoke(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options, @NotNull @NotNull org.aya.cli.library.source.LibrarySource source, @NotNull @NotNull XYXY range)
    • pre

      @NotNull public @NotNull org.aya.concrete.Pattern pre(@NotNull @NotNull org.aya.concrete.Pattern pattern)
      Specified by:
      pre in interface org.aya.concrete.visitor.EndoPattern
    • 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.
    • options

      @NotNull public @NotNull org.aya.util.prettier.PrettierOptions options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • location

      @NotNull public @NotNull XYXY location()
      Returns the value of the location record component.
      Specified by:
      location in interface SyntaxNodeAction<XYXY>
      Returns:
      the value of the location record component
    • hints

      @NotNull public @NotNull kala.collection.mutable.MutableList<InlayHints.Hint> hints()
      Returns the value of the hints record component.
      Returns:
      the value of the hints record component