Package org.eclipse.m2m.atl.engine.emfvm
Class ASM
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.ASM
The ASM Class, which manages an ASM program.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a field.voidaddOperation(ASMOperation operation) Adds an operation.Returns "main" operation, if any.getName()Returns All registered operations.static voidregisterOperations(ExecEnv execEnv, Iterator<ASMOperation> operationsToRegister) Registers all ATL operations.run(ITool[] tools, Map<String, IModel> models, Map<String, ASM> libraries, List<ASM> superimpose, Map<String, Object> options, org.eclipse.core.runtime.IProgressMonitor monitor, IModelAdapter modelAdapter) Launches the ASM.voidvoidsetVersion(String version)
-
Constructor Details
-
ASM
public ASM()ASM Constructor.
-
-
Method Details
-
setName
-
addField
Adds a field.- Parameters:
fieldName- the field nametype- the field type
-
addOperation
Adds an operation.- Parameters:
operation- the operation to add
-
getOperations
Returns All registered operations.- Returns:
- All registered operations
- See Also:
-
getMainOperation
Returns "main" operation, if any.- Returns:
- "main" operation, if any
-
run
public Object run(ITool[] tools, Map<String, IModel> models, Map<String, ASM> libraries, List<ASM> superimpose, Map<String, Object> options, org.eclipse.core.runtime.IProgressMonitor monitor, IModelAdapter modelAdapter) Launches the ASM.- Parameters:
tools- the execution toolsmodels- the model maplibraries- the library mapsuperimpose- the superimpose listoptions- the option mapmonitor- the progress monitormodelAdapter- theIModelAdapterto use- Returns:
- the execution result
-
registerOperations
Registers all ATL operations.- Parameters:
execEnv- the execution environment where to register operationsoperationsToRegister- the list of operations to register
-
getName
-
setVersion
-
getVersion
-