Record Class NamedImport
java.lang.Object
java.lang.Record
tools.refinery.language.scoping.imports.NamedImport
- All Implemented Interfaces:
Import
-
Constructor Summary
ConstructorDescriptionNamedImport
(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 aNamedImport
record class. -
Method Summary
Modifier and TypeMethodDescriptionList
<org.eclipse.xtext.naming.QualifiedName> aliases()
Returns the value of thealiases
record component.boolean
Returns the value of thealsoImplicit
record component.final boolean
Indicates whether some other object is "equal to" this one.static NamedImport
explicit
(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName, List<org.eclipse.xtext.naming.QualifiedName> aliases) final int
hashCode()
Returns a hash code value for this object.static NamedImport
implicit
(org.eclipse.emf.common.util.URI uri, org.eclipse.xtext.naming.QualifiedName qualifiedName) org.eclipse.xtext.naming.QualifiedName
Returns the value of thequalifiedName
record component.final String
toString()
Returns a string representation of this record class.org.eclipse.emf.common.util.URI
uri()
Returns the value of theuri
record 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 aNamedImport
record class.- Parameters:
uri
- the value for theuri
record componentqualifiedName
- the value for thequalifiedName
record componentaliases
- the value for thealiases
record componentalsoImplicit
- the value for thealsoImplicit
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
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 theuri
record component. -
qualifiedName
public org.eclipse.xtext.naming.QualifiedName qualifiedName()Returns the value of thequalifiedName
record component.- Returns:
- the value of the
qualifiedName
record component
-
aliases
Returns the value of thealiases
record component.- Returns:
- the value of the
aliases
record component
-
alsoImplicit
public boolean alsoImplicit()Returns the value of thealsoImplicit
record component.- Returns:
- the value of the
alsoImplicit
record component
-