public class ImportTranslator
extends java.lang.Object
| Constructor and Description |
|---|
ImportTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static net.ssehub.easy.varModel.model.ProjectImport |
processConflict(ConflictStmt conflictStmt)
Processes a conflict statement including import restrictions.
|
static net.ssehub.easy.varModel.model.ProjectImport |
processConflict(ConflictStmt conflictStmt,
ExpressionTranslator translator,
TypeContext context)
Processes a conflict statement including import restrictions.
|
static net.ssehub.easy.varModel.model.ProjectImport |
processImport(ImportStmt importStmt)
Processes an import statement including import restrictions.
|
static net.ssehub.easy.varModel.model.ProjectImport |
processImport(ImportStmt importStmt,
ExpressionTranslator translator,
TypeContext context)
Processes an import statement including import restrictions.
|
private static net.ssehub.easy.basics.modelManagement.IVersionRestriction |
processRestrictionExpression(java.lang.String name,
Expression expr,
ExpressionTranslator translator,
TypeContext context,
net.ssehub.easy.basics.messages.IMessageHandler handler)
Turns an ECore expression into a version restriction.
|
private static net.ssehub.easy.basics.modelManagement.IVersionRestriction processRestrictionExpression(java.lang.String name,
Expression expr,
ExpressionTranslator translator,
TypeContext context,
net.ssehub.easy.basics.messages.IMessageHandler handler)
throws net.ssehub.easy.dslCore.translation.TranslatorException,
net.ssehub.easy.basics.modelManagement.RestrictionEvaluationException
name - the name of the element being processedexpr - the expression to be turned into a version restriction (may be null but then the result will
also be null).translator - the expression translator (may be null but then the result will also be null)context - the current type context (may be null but then the result will also be null)handler - an optional message handler (may be null)net.ssehub.easy.dslCore.translation.TranslatorException - in case of translation problemsnet.ssehub.easy.basics.modelManagement.RestrictionEvaluationException - in case of problems while creating the restrictionpublic static net.ssehub.easy.varModel.model.ProjectImport processConflict(ConflictStmt conflictStmt)
throws net.ssehub.easy.dslCore.translation.TranslatorException
conflictStmt - the conflict statementnet.ssehub.easy.dslCore.translation.TranslatorException - in case of semantic errorspublic static net.ssehub.easy.varModel.model.ProjectImport processConflict(ConflictStmt conflictStmt,
ExpressionTranslator translator,
TypeContext context)
throws net.ssehub.easy.dslCore.translation.TranslatorException
conflictStmt - the conflict statementtranslator - the expression translator (may be null but then no restriction expressions are produced)context - the current type context (may be null but then no restriction expressions are produced)net.ssehub.easy.dslCore.translation.TranslatorException - in case of semantic errorspublic static net.ssehub.easy.varModel.model.ProjectImport processImport(ImportStmt importStmt)
throws net.ssehub.easy.dslCore.translation.TranslatorException
importStmt - the import statementnet.ssehub.easy.dslCore.translation.TranslatorException - in case of semantic errorspublic static net.ssehub.easy.varModel.model.ProjectImport processImport(ImportStmt importStmt,
ExpressionTranslator translator,
TypeContext context)
throws net.ssehub.easy.dslCore.translation.TranslatorException
importStmt - the import statementtranslator - the expression translator (may be null but then no restriction expressions are produced)context - the current type context (may be null but then no restriction expressions are produced)net.ssehub.easy.dslCore.translation.TranslatorException - in case of semantic errorsCopyright © 2009 - 2018 SSE. All Rights Reserved.