diff options
Diffstat (limited to 'org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/XcoreExtensions.xtend')
-rw-r--r-- | org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/XcoreExtensions.xtend | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/XcoreExtensions.xtend b/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/XcoreExtensions.xtend new file mode 100644 index 000000000..f2dcc69a5 --- /dev/null +++ b/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/XcoreExtensions.xtend @@ -0,0 +1,20 @@ +package org.eclipse.emf.ecore.xcore + +import org.eclipse.emf.codegen.ecore.genmodel.GenClass +import org.eclipse.emf.codegen.ecore.genmodel.GenTypeParameter + +class XcoreExtensions { + def getGenClass(XGenericType type) { + switch t : type.type { + GenClass : t + default : null + } + } + + def getGenTypeParameter(XGenericType type) { + switch t : type.type { + GenTypeParameter : t + default : null + } + } +}
\ No newline at end of file |