Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Jouault2015-03-27 03:05:13 -0400
committerFrédéric Jouault2015-03-27 03:05:33 -0400
commit39defe8e8d3da658d041e792024872630f5e1972 (patch)
treece4aa6b872cfcc63ea09482749b13d754b63046a
parent56b3beb107c23781ead9a43d82bcc5f1acfa1e9f (diff)
downloadorg.eclipse.atl.tcs-39defe8e8d3da658d041e792024872630f5e1972.tar.gz
org.eclipse.atl.tcs-39defe8e8d3da658d041e792024872630f5e1972.tar.xz
org.eclipse.atl.tcs-39defe8e8d3da658d041e792024872630f5e1972.zip
converted OclUndefined values to null in ASMModelAdapter
-rw-r--r--plugins/org.eclipse.gmt.tcs.extractor/src/org/eclipse/gmt/tcs/extractor/ASMModelAdapter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmt.tcs.extractor/src/org/eclipse/gmt/tcs/extractor/ASMModelAdapter.java b/plugins/org.eclipse.gmt.tcs.extractor/src/org/eclipse/gmt/tcs/extractor/ASMModelAdapter.java
index 73dbefc..a8630eb 100644
--- a/plugins/org.eclipse.gmt.tcs.extractor/src/org/eclipse/gmt/tcs/extractor/ASMModelAdapter.java
+++ b/plugins/org.eclipse.gmt.tcs.extractor/src/org/eclipse/gmt/tcs/extractor/ASMModelAdapter.java
@@ -25,6 +25,7 @@ import org.eclipse.m2m.atl.engine.vm.nativelib.ASMEnumLiteral;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMInteger;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMModelElement;
+import org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclUndefined;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMReal;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMString;
@@ -50,6 +51,8 @@ public class ASMModelAdapter implements ModelAdapter {
return newC;
} else if (value instanceof ASMString) {
return ((ASMString)value).getSymbol();
+ } else if(value instanceof ASMOclUndefined) {
+ return null;
} else if(value instanceof ASMInteger) {
return new Integer((((ASMInteger)value).getSymbol()));
} else if(value instanceof ASMReal) {

Back to the top