java.lang.Object
java.lang.Record
org.aya.concrete.stmt.Command.Import
- Enclosing interface:
Command
public static record Command.Import(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull QualifiedID path, @Nullable String asName)
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
ConstructorsConstructorDescriptionImport(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull QualifiedID path, @Nullable String asName) Creates an instance of aImportrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stmt.Accessibility@Nullable StringasName()Returns the value of theasNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@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.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
-
Import
public Import(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull QualifiedID path, @Nullable @Nullable String asName) Creates an instance of aImportrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentpath- the value for thepathrecord componentasName- the value for theasNamerecord component
-
-
Method Details
-
accessibility
- Specified by:
accessibilityin interfaceStmt
-
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). -
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
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
asName
Returns the value of theasNamerecord component.- Returns:
- the value of the
asNamerecord component
-