Record Class NamedImport
java.lang.Object
java.lang.Record
tools.refinery.language.scoping.imports.NamedImport
- All Implemented Interfaces:
Import
-
Constructor Summary
ConstructorsConstructorDescriptionNamedImport(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 aNamedImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.xtext.naming.QualifiedName> aliases()Returns the value of thealiasesrecord component.booleanReturns the value of thealsoImplicitrecord component.final booleanIndicates whether some other object is "equal to" this one.static NamedImportexplicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases) final inthashCode()Returns a hash code value for this object.static NamedImportimplicit(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName) org.eclipse.xtext.naming.QualifiedNameReturns the value of thequalifiedNamerecord component.final StringtoString()Returns a string representation of this record class.org.eclipse.emf.common.util.URIuri()Returns the value of theurirecord component.
-
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 aNamedImportrecord class.- Parameters:
uri- the value for theurirecord componentqualifiedName- the value for thequalifiedNamerecord componentaliases- the value for thealiasesrecord componentalsoImplicit- the value for thealsoImplicitrecord 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
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 '=='. -
uri
public org.eclipse.emf.common.util.URI uri()Returns the value of theurirecord component. -
qualifiedName
public org.eclipse.xtext.naming.QualifiedName qualifiedName()Returns the value of thequalifiedNamerecord component.- Returns:
- the value of the
qualifiedNamerecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-
alsoImplicit
public boolean alsoImplicit()Returns the value of thealsoImplicitrecord component.- Returns:
- the value of the
alsoImplicitrecord component
-