Interface IArtifactScope


  • public interface IArtifactScope
    Common interface for all artifact scopes.
    • Method Detail

      • getPackageName

        java.lang.String getPackageName()
        This method returns the package name of the current artifact scope. If the package is empty or a language does not support packages, the method implementation returns an empty String.
        Returns:
      • setPackageName

        void setPackageName​(java.lang.String packageName)
        This method can be used to set the package name of the current artifact scope.
        Parameters:
        packageName -
      • getFullName

        java.lang.String getFullName()
        This method returns the full name of the current artifact scope. The full name of an artifact scope is the name of the artifact, preceded by the package, if it is not empty.
        Returns:
      • calculateQualifiedNames

        @Deprecated
        default java.util.Set<java.lang.String> calculateQualifiedNames​(java.lang.String name,
                                                                        java.lang.String packageName,
                                                                        java.util.List<ImportStatement> imports)
        Deprecated.
        This method will be removed soon. Instead, symbol table creators should qualify names pointing to symbols of foreign models with the respective import statements in the model.
        Calculates possible qualified names for the simpleName. For this, it considers the (possible) packageName and the imports (i.e., import statements).
        Parameters:
        name - the simple name of the symbol
        packageName - the possible package name
        imports - the import statements
        Returns:
        a set of possible qualified names for the simpleName