Package de.monticore.symboltable
Interface IArtifactScope
-
public interface IArtifactScope
Common interface for all artifact scopes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description 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.java.lang.String
getFullName()
This method returns the full name of the current artifact scope.java.lang.String
getPackageName()
This method returns the package name of the current artifact scope.void
setPackageName(java.lang.String packageName)
This method can be used to set the package name of the current artifact scope.
-
-
-
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 thesimpleName
. For this, it considers the (possible)packageName
and 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
-
-