java.lang.Object
java.lang.Record
org.aya.concrete.stmt.Command.Open
- Enclosing interface:
Command
public static record Command.Open(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Stmt.Accessibility accessibility, @NotNull QualifiedID path, @NotNull UseHide useHide, boolean openExample, boolean fromSugar)
extends Record
implements Command
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.stmt.Command
Command.Import, Command.Module, Command.OpenNested classes/interfaces inherited from interface org.aya.concrete.stmt.Stmt
Stmt.Accessibility -
Constructor Summary
ConstructorsConstructorDescriptionOpen(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Stmt.Accessibility accessibility, @NotNull QualifiedID path, @NotNull UseHide useHide, boolean openExample, boolean fromSugar) Creates an instance of aOpenrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stmt.AccessibilityReturns the value of theaccessibilityrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromSugarrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theopenExamplerecord component.@NotNull QualifiedIDpath()Returns the value of thepathrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull UseHideuseHide()Returns the value of theuseHiderecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Constructor Details
-
Open
public Open(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Stmt.Accessibility accessibility, @NotNull @NotNull QualifiedID path, @NotNull @NotNull UseHide useHide, boolean openExample, boolean fromSugar) Creates an instance of aOpenrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentaccessibility- the value for theaccessibilityrecord componentpath- the value for thepathrecord componentuseHide- the value for theuseHiderecord componentopenExample- the value for theopenExamplerecord componentfromSugar- the value for thefromSugarrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Specified by:
sourcePosin interfaceorg.aya.util.error.SourceNode- Returns:
- the value of the
sourcePosrecord component
-
accessibility
Returns the value of theaccessibilityrecord component.- Specified by:
accessibilityin interfaceStmt- Returns:
- the value of the
accessibilityrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
useHide
Returns the value of theuseHiderecord component.- Returns:
- the value of the
useHiderecord component
-
openExample
public boolean openExample()Returns the value of theopenExamplerecord component.- Returns:
- the value of the
openExamplerecord component
-
fromSugar
public boolean fromSugar()Returns the value of thefromSugarrecord component.- Returns:
- the value of the
fromSugarrecord component
-