Package org.eclipse.epsilon.hutn
Interface IHutnModule
-
- All Superinterfaces:
IModule
,ModuleElement
- All Known Implementing Classes:
HutnModule
public interface IHutnModule extends IModule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractEmfModel
generateEmfModel()
Spec
getIntermediateModel()
String
getModelFile()
List<String>
getNsUris()
boolean
hasValidHutn()
Returns false only if the HUTN source passed to parse is not valid HUTN.boolean
hasValidMetaModel()
void
setConfigFileDirectory(File configFileDirectory)
List<File>
storeEmfModel(File baseDirectory, String defaultModelPath, String inferredMetamodelPath)
Generates an EMF model for the HUTN source passed to parse.void
storeIntermediateModel(File destination)
void
storeIntermediateModelTransformation(File destination)
void
storeIntermediateModelTransformationForAllInputModels(File destination)
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getParseProblems, getSourceUri, parse, parse, parse, parse, parse, parse
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Method Detail
-
generateEmfModel
AbstractEmfModel generateEmfModel() throws HutnGenerationException
- Returns:
- an in-memory EMF model for the HUTN source passed to parse.
- Throws:
HutnGenerationException
-
storeEmfModel
List<File> storeEmfModel(File baseDirectory, String defaultModelPath, String inferredMetamodelPath) throws HutnGenerationException
Generates an EMF model for the HUTN source passed to parse.
The model is stored in the given baseDirectory, with filename defaultModelPath. The HUTN source may contain a modelFile attribute (in a model package, in the Spec preamble). When a modelFile attribute is specified in the HUTN source, that value takes precedence over defaultModelPath.
When a metamodel is inferred (because no metamodel is specfied in the Spec preamble), it is generated in the given baseDirectory, with filename inferredMetamodelPath.
- Parameters:
baseDirectory
-defaultModelPath
-inferredMetamodelPath
-- Returns:
- the list of Files generated by this method invocation.
- Throws:
HutnGenerationException
-
hasValidMetaModel
boolean hasValidMetaModel()
-
getModelFile
String getModelFile()
-
setConfigFileDirectory
void setConfigFileDirectory(File configFileDirectory)
-
getIntermediateModel
Spec getIntermediateModel()
-
storeIntermediateModel
void storeIntermediateModel(File destination)
-
storeIntermediateModelTransformation
void storeIntermediateModelTransformation(File destination) throws HutnGenerationException
- Throws:
HutnGenerationException
-
storeIntermediateModelTransformationForAllInputModels
void storeIntermediateModelTransformationForAllInputModels(File destination) throws HutnGenerationException
- Throws:
HutnGenerationException
-
hasValidHutn
boolean hasValidHutn()
Returns false only if the HUTN source passed to parse is not valid HUTN. True is returned when the HUTN is valid, regardless of whether it conforms to the metamodel specified in the preamble.
-
-