Module aya.base

Record Class DeclInfo

java.lang.Object
java.lang.Record
org.aya.concrete.stmt.decl.DeclInfo

public record DeclInfo(Stmt.Accessibility accessibility, @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.util.error.SourcePos entireSourcePos, org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull BindBlock bindBlock) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeclInfo(Stmt.Accessibility accessibility, @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.util.error.SourcePos entireSourcePos, org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull BindBlock bindBlock)
    Creates an instance of a DeclInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the accessibility record component.
    @NotNull BindBlock
    Returns the value of the bindBlock record component.
    @NotNull org.aya.util.error.SourcePos
    Returns the value of the entireSourcePos record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.aya.util.binop.OpDecl.OpInfo
    Returns the value of the opInfo record component.
    @NotNull org.aya.util.error.SourcePos
    Returns the value of the sourcePos 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
  • Constructor Details

    • DeclInfo

      public DeclInfo(@NotNull Stmt.Accessibility accessibility, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.util.error.SourcePos entireSourcePos, @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull @NotNull BindBlock bindBlock)
      Creates an instance of a DeclInfo record class.
      Parameters:
      accessibility - the value for the accessibility record component
      sourcePos - the value for the sourcePos record component
      entireSourcePos - the value for the entireSourcePos record component
      opInfo - the value for the opInfo record component
      bindBlock - the value for the bindBlock record component
  • Method Details

    • 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.
    • accessibility

      @NotNull public Stmt.Accessibility accessibility()
      Returns the value of the accessibility record component.
      Returns:
      the value of the accessibility record component
    • sourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()
      Returns the value of the sourcePos record component.
      Returns:
      the value of the sourcePos record component
    • entireSourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos entireSourcePos()
      Returns the value of the entireSourcePos record component.
      Returns:
      the value of the entireSourcePos record component
    • opInfo

      @Nullable public org.aya.util.binop.OpDecl.OpInfo opInfo()
      Returns the value of the opInfo record component.
      Returns:
      the value of the opInfo record component
    • bindBlock

      @NotNull public @NotNull BindBlock bindBlock()
      Returns the value of the bindBlock record component.
      Returns:
      the value of the bindBlock record component