Record Class NamedImport

java.lang.Object
java.lang.Record
tools.refinery.language.scoping.imports.NamedImport
All Implemented Interfaces:
Import

public record NamedImport(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases, boolean alsoImplicit) extends Record implements Import
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedImport(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases, boolean alsoImplicit)
    Creates an instance of a NamedImport record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.xtext.naming.QualifiedName>
    Returns the value of the aliases record component.
    boolean
    Returns the value of the alsoImplicit record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    explicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases)
     
    final int
    Returns a hash code value for this object.
    implicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName)
     
    org.eclipse.xtext.naming.QualifiedName
    Returns the value of the qualifiedName record component.
    final String
    Returns a string representation of this record class.
    org.eclipse.emf.common.util.URI
    uri()
    Returns the value of the uri record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NamedImport

      public NamedImport(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases, boolean alsoImplicit)
      Creates an instance of a NamedImport record class.
      Parameters:
      uri - the value for the uri record component
      qualifiedName - the value for the qualifiedName record component
      aliases - the value for the aliases record component
      alsoImplicit - the value for the alsoImplicit record component
  • Method Details

    • implicit

      public static NamedImport implicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName)
    • explicit

      public static NamedImport explicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • uri

      public org.eclipse.emf.common.util.URI uri()
      Returns the value of the uri record component.
      Specified by:
      uri in interface Import
      Returns:
      the value of the uri record component
    • qualifiedName

      public org.eclipse.xtext.naming.QualifiedName qualifiedName()
      Returns the value of the qualifiedName record component.
      Returns:
      the value of the qualifiedName record component
    • aliases

      public List<org.eclipse.xtext.naming.QualifiedName> aliases()
      Returns the value of the aliases record component.
      Returns:
      the value of the aliases record component
    • alsoImplicit

      public boolean alsoImplicit()
      Returns the value of the alsoImplicit record component.
      Returns:
      the value of the alsoImplicit record component