Package de.monticore.symboltable
Interface IArtifactScope
public interface IArtifactScope
Common interface for all artifact scopes.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateQualifiedNames(String name, String packageName, List<ImportStatement> imports) Deprecated.This method will be removed soon.This method returns the full name of the current artifact scope.This method returns the package name of the current artifact scope.voidsetPackageName(String packageName) This method can be used to set the package name of the current artifact scope.
-
Method Details
-
getPackageName
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
This method can be used to set the package name of the current artifact scope.- Parameters:
packageName-
-
getFullName
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 Set<String> calculateQualifiedNames(String name, String packageName, 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 thesimpleName. For this, it considers the (possible)packageNameand theimports(i.e., import statements).- Parameters:
name- the simple name of the symbolpackageName- the possible package nameimports- the import statements- Returns:
- a set of possible qualified names for the
simpleName
-