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 -
Constructor Summary
ConstructorsConstructorDescriptionDeclInfo(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 aDeclInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessibilityrecord component.@NotNull BindBlockReturns the value of thebindBlockrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of theentireSourcePosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.aya.util.binop.OpDecl.OpInfoopInfo()Returns the value of theopInforecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aDeclInforecord class.- Parameters:
accessibility- the value for theaccessibilityrecord componentsourcePos- the value for thesourcePosrecord componententireSourcePos- the value for theentireSourcePosrecord componentopInfo- the value for theopInforecord componentbindBlock- the value for thebindBlockrecord component
-
-
Method Details
-
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). -
accessibility
Returns the value of theaccessibilityrecord component.- Returns:
- the value of the
accessibilityrecord component
-
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Returns:
- the value of the
sourcePosrecord component
-
entireSourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos entireSourcePos()Returns the value of theentireSourcePosrecord component.- Returns:
- the value of the
entireSourcePosrecord component
-
opInfo
@Nullable public org.aya.util.binop.OpDecl.OpInfo opInfo()Returns the value of theopInforecord component.- Returns:
- the value of the
opInforecord component
-
bindBlock
Returns the value of thebindBlockrecord component.- Returns:
- the value of the
bindBlockrecord component
-