org.eclipse.m2m.atl.engine.vm
Class ASMInterpreter

java.lang.Object
  extended by org.eclipse.m2m.atl.engine.vm.ASMInterpreter

public class ASMInterpreter
extends java.lang.Object

This Java class interprets ATL Stack Machine. Command-line Parameters are in the form name=value. In the following descriptions, parameters are typed.

Command-line parameters:
Operation signature encoding
Type Encoding Sample Type Sample Type encoded
Object J
Void V
Integer I
Boolean B
String S
Double D
EnumLiteral Z
ATL context Module A
ModelElement M<meta-model-name>!<element-name> XML!Node MXML!Node;
Model L
Sequence(<type>) Q<type> Sequence(String) QS
Bag(<type>) G<type>
Collection(<type>) C<type>
Set(<type>) E<type>
OrderedSet(<type>) O<type>
Native type N<name> TransientLink NTransientLink;
Tuple(name1:<type1>,name2:<type2>) T<type1>name1;<type2>>name2;; Tuple(n:String,v:Integer) TSn;Iv;;
Tuple(m:XML!Node,b:Boolean) TMXML!Node;m;Bb;;
Note: in Tuples, attribute order is not relevant: TIa;Ib;; and TIb;Ia;; denote the same TupleType

Sample method signature encodings
Signature Encoding
context XML!Element def: getAttrVal(name : String) : String MXML!Element;.getAttrVal(S):S
context String def: toBoolean() : Boolean S.toBoolean():B
context String def: toIntegerFromRoman() : Integer S.toIntegerFromRoman():I


Constructor Summary
ASMInterpreter(ASM asm, ASMModule asmModule, ASMExecEnv env, java.util.Map params)
           
 
Method Summary
 ASMOclAny getReturnValue()
           
static void realMain(java.lang.String[] args, PluginClassLoader pcl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMInterpreter

public ASMInterpreter(ASM asm,
                      ASMModule asmModule,
                      ASMExecEnv env,
                      java.util.Map params)
Method Detail

realMain

public static void realMain(java.lang.String[] args,
                            PluginClassLoader pcl)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getReturnValue

public ASMOclAny getReturnValue()

Copyright 2007 IBM Corporation and others.
All Rights Reserved.