public class ImportTranslator
extends java.lang.Object
| Constructor and Description |
|---|
ImportTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static ProjectImport |
processConflict(de.uni_hildesheim.sse.ivml.ConflictStmt conflictStmt)
Processes a conflict statement including import restrictions.
|
static ProjectImport |
processConflict(de.uni_hildesheim.sse.ivml.ConflictStmt conflictStmt,
ExpressionTranslator translator,
TypeContext context)
Processes a conflict statement including import restrictions.
|
static ProjectImport |
processImport(de.uni_hildesheim.sse.ivml.ImportStmt importStmt)
Processes an import statement including import restrictions.
|
static ProjectImport |
processImport(de.uni_hildesheim.sse.ivml.ImportStmt importStmt,
ExpressionTranslator translator,
TypeContext context)
Processes an import statement including import restrictions.
|
private static IVersionRestriction |
processRestrictionExpression(java.lang.String name,
de.uni_hildesheim.sse.ivml.Expression expr,
ExpressionTranslator translator,
TypeContext context,
IMessageHandler handler)
Turns an ECore expression into a version restriction.
|
private static IVersionRestriction processRestrictionExpression(java.lang.String name, de.uni_hildesheim.sse.ivml.Expression expr, ExpressionTranslator translator, TypeContext context, IMessageHandler handler) throws TranslatorException, 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)TranslatorException - in case of translation problemsRestrictionEvaluationException - in case of problems while creating the restrictionpublic static ProjectImport processConflict(de.uni_hildesheim.sse.ivml.ConflictStmt conflictStmt) throws TranslatorException
conflictStmt - the conflict statementTranslatorException - in case of semantic errorspublic static ProjectImport processConflict(de.uni_hildesheim.sse.ivml.ConflictStmt conflictStmt, ExpressionTranslator translator, TypeContext context) throws 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)TranslatorException - in case of semantic errorspublic static ProjectImport processImport(de.uni_hildesheim.sse.ivml.ImportStmt importStmt) throws TranslatorException
importStmt - the import statementTranslatorException - in case of semantic errorspublic static ProjectImport processImport(de.uni_hildesheim.sse.ivml.ImportStmt importStmt, ExpressionTranslator translator, TypeContext context) throws 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)TranslatorException - in case of semantic errorsCopyright © 2009 - 2018 SSE. All Rights Reserved.