Class AtlToEmftvmCompiler
java.lang.Object
org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler
- All Implemented Interfaces:
AtlStandaloneCompiler
Invokes the ATL to EMFTVM compiler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExecEnvPoolprotected final ExecEnvPoolprotected final ExecEnvPoolprotected final Metamodelprotected final org.eclipse.emf.ecore.resource.ResourceSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CompileTimeError[]compile(InputStream in, String outputFileName) Compiles an ATL script and returns easily accessible error messages.Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(InputStream in, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(InputStream in, String outputFileName) Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(Reader in, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(Reader in, String outputFileName) Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(IModel atlModel, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.org.eclipse.emf.ecore.EObject[]compileWithProblemModel(IModel atlModel, String outputFileName) Compiles an ATL script and returns easily accessible error messages.protected ModuleResolverFactoryCreates a newModuleResolverFactory.protected intgetProblems(IModel problems, Collection<org.eclipse.emf.ecore.EObject> pbElements) Retrieves problem elements fromproblems.protected intgetProblems(Model problems, Collection<org.eclipse.emf.ecore.EObject> pbElements) Retrieves problem elements fromproblems.
-
Field Details
-
rs
protected final org.eclipse.emf.ecore.resource.ResourceSet rs -
pbmm
-
atlWfrPool
-
atlToEmftvmPool
-
inlineCodeblocksPool
-
-
Constructor Details
-
AtlToEmftvmCompiler
public AtlToEmftvmCompiler()Creates a newAtlToEmftvmCompiler.
-
-
Method Details
-
createModuleResolverFactory
Creates a newModuleResolverFactory.- Returns:
- a new
ModuleResolverFactory
-
compile
Compiles an ATL script and returns easily accessible error messages.- Specified by:
compilein interfaceAtlStandaloneCompiler- Parameters:
in- The InputStream to get atl source from.outputFileName- Name of the file to which the ATL compiled program will be saved.- Returns:
- array of compiletime errors (0 length if no errors)
-
compileWithProblemModel
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(InputStream in, String outputFileName) Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
in- The InputStream to get atl source from.outputFileName- Name of the file to which the ATL compiled program will be saved.- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
compileWithProblemModel
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(InputStream in, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
in- The InputStream to get atl source from.outputStream- the compilation ASM output stream- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
compile
Compiles an ATL script and returns easily accessible error messages.- Specified by:
compilein interfaceAtlStandaloneCompiler- Parameters:
in- The Reader to get atl source from.outputFileName- Name of the file to which the ATL compiled program will be saved.- Returns:
- array of compiletime errors (0 length if no errors)
-
compileWithProblemModel
Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
in- The Reader to get atl source from.outputFileName- Name of the file to which the ATL compiled program will be saved.- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
compileWithProblemModel
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(Reader in, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
in- The Reader to get atl source from.outputStream- the compilation ASM output stream- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
compileWithProblemModel
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(IModel atlModel, OutputStream outputStream) Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
atlModel- The atlModel.outputStream- the compilation ASM output stream- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
compileWithProblemModel
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(IModel atlModel, String outputFileName) Compiles an ATL script and returns easily accessible error messages.- Specified by:
compileWithProblemModelin interfaceAtlStandaloneCompiler- Parameters:
atlModel- The atlModel.outputFileName- Name of the file to which the ATL compiled program will be saved.- Returns:
- array of compiletime errors as EObjects (0 length if no errors)
-
getProblems
Retrieves problem elements fromproblems.- Parameters:
problems- the problems modelpbElements- the collection of problem elements to augment- Returns:
- the number of error problems
-
getProblems
Retrieves problem elements fromproblems.- Parameters:
problems- the problems modelpbElements- the collection of problem elements to augment- Returns:
- the number of error problems
-