<?xml version="1.0" encoding="UTF-8"?> | |
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:mtl="http://www.eclipse.org/acceleo/mtl/3.0" xmlns:ocl.ecore="http://www.eclipse.org/ocl/1.1.0/Ecore"> | |
<mtl:Module name="mt2mtl" nsURI="org::eclipse::acceleo::internal::compatibility::mtl::gen::mt2mtl" endHeaderPosition="57"> | |
<input> | |
<takesTypesFrom href="http://www.eclipse.org/acceleo/mt/2.6.0#/"/> | |
<takesTypesFrom href="http://www.eclipse.org/acceleo/mt/2.6.0#//core"/> | |
<takesTypesFrom href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions"/> | |
<takesTypesFrom href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements"/> | |
</input> | |
<imports href="ServiceUtils.emtl#/0"/> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="93" endPosition="405" value="
This will be used to convert a given Acceleo.org "template" 
(an aggregate of scripts) to an Acceleo MTL "module" (aggregate of queries,
templates and macros). The name of the "template"'s containing file 
will be used as the name of the converted module.

templ : Acceleo.org template that needs be converted.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertToModule" visibility="Public" main="true"> | |
<body xsi:type="mtl:FileBlock" openMode="OverWrite"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="module "/> | |
<body xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="mtl:QueryInvocation" definition="/0/shortName"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/convertToModule/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="-"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="("/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"/> | |
<body xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/14"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource/name"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"/> | |
<iterSet xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/OrderedSet(Resource)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Resource)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/convertToModule/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template/imports"/> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToModule/@body.0/@body.4/select/temp1"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Metamodel"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Metamodel"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp1"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</iterator> | |
</iterSet> | |
<each xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</each> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=")/]
"/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="import "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/qualifiedImportName"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="imported" referredVariable="/0/convertToModule/@body.0/@body.6/imported"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/]
"/> | |
<loopVariable name="imported"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:IteratorExp" name="reject" eType="/3/OrderedSet(Resource)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="reject" eType="/3/OrderedSet(Resource)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Resource)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/convertToModule/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template/imports"/> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToModule/@body.0/@body.6/reject/reject/temp2"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Metamodel"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Metamodel"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp2"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</iterator> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp2" referredVariable="/0/convertToModule/@body.0/@body.6/reject/temp3"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Service"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Service"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp3"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource"/> | |
</iterator> | |
</iterSet> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertToBooleanQuery"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToModule/@body.0/@body.8/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<ifExpr xsi:type="mtl:QueryInvocation" definition="/0/isBooleanQuery"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToModule/@body.0/@body.8/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</ifExpr> | |
<else> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertToTemplate"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToModule/@body.0/@body.8/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
</else> | |
<elseIf> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertToCollectionQuery"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToModule/@body.0/@body.8/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<ifExpr xsi:type="mtl:QueryInvocation" definition="/0/isCollectionQuery"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToModule/@body.0/@body.8/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</ifExpr> | |
</elseIf> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<loopVariable name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Script)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/convertToModule/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template/scripts"/> | |
</iterSet> | |
<each xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</each> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="query private "/> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="adaptTo"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/getAdaptType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="adaptCall" referredVariable="/0/convertToModule/@body.0/@body.10/adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="(o : OclAny) : "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/inferAdaptReturnType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="adaptCall" referredVariable="/0/convertToModule/@body.0/@body.10/adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" = invoke('org.eclipse.acceleo.compatibility.services.MigrationServices', '"/> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="adaptTo"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Expression)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="adaptCall" referredVariable="/0/convertToModule/@body.0/@body.10/adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/arguments"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="(java.lang.Object)', Sequence{o})/]
"/> | |
<loopVariable name="adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</loopVariable> | |
<iterSet xsi:type="mtl:QueryInvocation" eType="/3/OrderedSet(Call)" definition="/0/selectUniqueCallAdapt"> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/33"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</argument> | |
</iterSet> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertToQuery"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="service" referredVariable="/0/convertToModule/@body.0/@body.12/service"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<loopVariable name="service"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:OperationCallExp" eType="/3/Set(Method)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(Method)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/Sequence(Call)"> | |
<source xsi:type="mtl:QueryInvocation" eType="/3/Sequence(Call)" definition="/0/allCalls"> | |
<argument xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/convertToModule/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</argument> | |
</source> | |
<body xsi:type="mtl:QueryInvocation"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<definition href="ServiceUtils.emtl#/0/isServiceCall"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="c" referredVariable="/0/convertToModule/@body.0/@body.12/@iterSet/collect/select/c"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="c"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<body xsi:type="mtl:QueryInvocation" eType="/3/Set(Method)"> | |
<definition href="ServiceUtils.emtl#/0/getTargetService"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToModule/@body.0/@body.12/@iterSet/collect/temp4"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp4"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/asSet"/> | |
</iterSet> | |
</body> | |
<fileUrl xsi:type="mtl:QueryInvocation" definition="/0/fullpathName"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/7"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</argument> | |
</fileUrl> | |
</body> | |
<parameter name="templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="selectUniqueCallAdapt" type="/3/OrderedSet(Call)"> | |
<parameter name="templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp" eType="/3/OrderedSet(Call)"> | |
<source xsi:type="ocl.ecore:IterateExp" name="iterate" eType="/3/Sequence(Call)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/Sequence(Call)"> | |
<source xsi:type="mtl:QueryInvocation" eType="/3/Sequence(Call)" definition="/0/allCalls"> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:AnyType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(OclAny)" referredOperation="/1/EObject_Class/ancestors"> | |
<source xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/selectUniqueCallAdapt/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</source> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/last"/> | |
</argument> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/select/temp5"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="adapt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/="/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp5"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<body xsi:type="ocl.ecore:IfExp" eType="/3/Sequence(Call)"> | |
<condition xsi:type="mtl:QueryInvocation" definition="/0/isNotTypeAdaptInCallsList"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="resSeq" eType="/3/Sequence(Call)" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/resSeq"/> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/getAdaptType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="call" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/call"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</argument> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(Call)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="resSeq" eType="/3/Sequence(Call)" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/resSeq"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="call" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/call"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/append"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:VariableExp" name="resSeq" eType="/3/Sequence(Call)" referredVariable="/0/selectUniqueCallAdapt/@expression/iterate/resSeq"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="call"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
<result xsi:type="ocl.ecore:Variable" name="resSeq" eType="/3/Sequence(Call)"> | |
<initExpression xsi:type="ocl.ecore:CollectionLiteralExp" eType="/3/Sequence(OclVoid)" kind="Sequence"/> | |
</result> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/asOrderedSet"/> | |
</expression> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="isNotTypeAdaptInCallsList"> | |
<parameter name="callList" eType="/3/Sequence(Call)"/> | |
<parameter name="str"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="callList" eType="/3/Sequence(Call)" referredVariable="/0/isNotTypeAdaptInCallsList/callList"/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/getAdaptType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="c" referredVariable="/0/isNotTypeAdaptInCallsList/@expression/select/collect/c"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="c"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="s" referredVariable="/0/isNotTypeAdaptInCallsList/@expression/select/s"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="str" referredVariable="/0/isNotTypeAdaptInCallsList/str"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/="/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="s"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</iterator> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/isEmpty"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="getAdaptType"> | |
<parameter name="adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Expression)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="adaptCall" referredVariable="/0/getAdaptType/adaptCall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/arguments"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="2400" endPosition="2517" value="
Generate the full path name of file module

template : Acceleo Template will be converted to an Acceleo MTL Module.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="fullpathName"> | |
<parameter name="templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="templ" referredVariable="/0/fullpathName/templ"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Template"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="\."> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="-"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=".mtl"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="2672" endPosition="2713" value=" Test if mt Script probably return a list"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="isCollectionQuery"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isCollectionQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</source> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isCollectionQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/and"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isCollectionQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Feature"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:LetExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<in xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="subFeature" referredVariable="/0/isCollectionQuery/@expression/@argument.0/@thenExpression/subFeature"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature/expression"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/CallSet"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:LetExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<in xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Call)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="cSet" referredVariable="/0/isCollectionQuery/@expression/@argument.0/@thenExpression/@in/@thenExpression/cSet"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet/calls"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</source> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Call)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="cSet" referredVariable="/0/isCollectionQuery/@expression/@argument.0/@thenExpression/@in/@thenExpression/cSet"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet/calls"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/filter"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsUndefined"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/not"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/and"/> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="cSet"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="subFeature" referredVariable="/0/isCollectionQuery/@expression/@argument.0/@thenExpression/subFeature"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature/expression"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/CallSet"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclAsType"/> | |
</initExpression> | |
</variable> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:BooleanLiteralExp" booleanSymbol="false"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</elseExpression> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="subFeature"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isCollectionQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Feature"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Feature"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclAsType"/> | |
</initExpression> | |
</variable> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:BooleanLiteralExp" booleanSymbol="false"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</elseExpression> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/and"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="3382" endPosition="3428" value=" Test if mt Script probably return a boolean "/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="isBooleanQuery"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/matches"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isBooleanQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="(is|has)[A-Z_-].*"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/isBooleanQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/and"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="matches"> | |
<parameter name="string"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</parameter> | |
<parameter name="regex"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replace"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="string" referredVariable="/0/matches/string"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="regex" referredVariable="/0/matches/regex"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="string" referredVariable="/0/matches/string"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/%3C%3E"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="3717" endPosition="3883" value="
This will be used to convert a given Acceleo.org "script" 
to an Acceleo MTL "template".

script : Acceleo script that will be converted to an Acceleo MTL template.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertToTemplate" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="template public "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/genTemplateHeader"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/72"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="]"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="comment This template is called by the main module file /]
"/> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="file ("/> | |
<body xsi:type="mtl:QueryInvocation" eType="/3/Sequence(String)" definition="/0/genFileName"> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/77"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", false))]
"/> | |
<ifExpr xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToTemplate/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToTemplate/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToTemplate/collect/temp6"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp6"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="[/"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="file]
"/> | |
<ifExpr xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToTemplate/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="[/"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="template"/> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="]"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="4318" endPosition="4426" value="
Convert the header from mt to mtl

script : Acceleo script that will be converted to an Acceleo MTL query.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="genTemplateHeader" visibility="Public"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/replaceAll"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genTemplateHeader/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="-"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="("> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/getVariableNameForType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genTemplateHeader/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/type"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" : "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/convertType"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genTemplateHeader/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/type"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/getAdditionalArguments"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genTemplateHeader/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=")"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="mtl:QueryInvocation" definition="/0/genPostTrim"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genTemplateHeader/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="4790" endPosition="4896" value="
Convert post trim in the header

script : Acceleo script that will be converted to an Acceleo MTL query.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="genPostTrim" visibility="Public"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genPostTrim/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/post"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsUndefined"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:LetExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<in xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/OrderedSet(Call)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Call)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="setcall" referredVariable="/0/genPostTrim/@expression/@elseExpression/setcall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet/calls"/> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="call" referredVariable="/0/genPostTrim/@expression/@elseExpression/@in/@condition/select/call"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="trim"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/="/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="call"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/isEmpty"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" post(trim())"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</elseExpression> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="setcall"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genPostTrim/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/post"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/CallSet"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/CallSet"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclAsType"/> | |
</initExpression> | |
</variable> | |
</elseExpression> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="5231" endPosition="5338" value="
Generate the content of file tag

script : Acceleo script that will be converted to an Acceleo MTL query.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="genFileName" visibility="Public" type="/3/Sequence(String)"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:LetExp" eType="/3/Sequence(String)"> | |
<in xsi:type="ocl.ecore:LetExp" eType="/3/Sequence(String)"> | |
<in xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="stmts" eType="/3/OrderedSet(Statement)" referredVariable="/0/genFileName/@expression/stmts"/> | |
<body xsi:type="ocl.ecore:LetExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<in xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="size" referredVariable="/0/genFileName/@expression/@in/size"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</source> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="stmt" referredVariable="/0/genFileName/@expression/@in/collect/stmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Text"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean_Class/and"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="convertedStmt" referredVariable="/0/genFileName/@expression/@in/collect/@body/convertedStmt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="'"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="stmt" referredVariable="/0/genFileName/@expression/@in/collect/stmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Text"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OclAny_Class/oclIsKindOf"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:VariableExp" name="convertedStmt" referredVariable="/0/genFileName/@expression/@in/collect/@body/convertedStmt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="stmts" eType="/3/OrderedSet(Statement)" referredVariable="/0/genFileName/@expression/stmts"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="stmt" referredVariable="/0/genFileName/@expression/@in/collect/stmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/indexOf"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/="/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:VariableExp" name="convertedStmt" referredVariable="/0/genFileName/@expression/@in/collect/@body/convertedStmt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=".concat("> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="convertedStmt" referredVariable="/0/genFileName/@expression/@in/collect/@body/convertedStmt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=")"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</elseExpression> | |
</elseExpression> | |
</elseExpression> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="convertedStmt"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<initExpression xsi:type="mtl:TemplateInvocation" definition="/0/convertStatementToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="stmt" referredVariable="/0/genFileName/@expression/@in/collect/stmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</initExpression> | |
</variable> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="stmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="size"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genFileName/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</initExpression> | |
</variable> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="stmts" eType="/3/OrderedSet(Statement)"> | |
<initExpression xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/genFileName/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/descriptor"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/ScriptDescriptor/file"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/FilePath/statements"/> | |
</initExpression> | |
</variable> | |
</expression> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="6041" endPosition="6221" value="
This will be used to convert a given Acceleo.org "script" 
to an Acceleo MTL "query" returning a boolean.

script : Acceleo script that will be converted to an Acceleo MTL query.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertToBooleanQuery" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="query public "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/genTemplateHeader"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/97"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" : Boolean =
"/> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToBooleanQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatementToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToBooleanQuery/collect/temp7"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp7"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/]"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertToCollectionQuery" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="query public "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/genTemplateHeader"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="self" referredVariable="/105"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" : Collection(OclAny) =
"/> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/convertToCollectionQuery/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script/statements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatementToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertToCollectionQuery/collect/temp8"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp8"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"/> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/]"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertToQuery" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="query private "/> | |
<body xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/name"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="("/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="arg"/> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Parameter)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/parameters"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="param" referredVariable="/0/convertToQuery/@body.4/param"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/indexOf"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/-"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" : "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/convertJavaTypeToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="param" referredVariable="/0/convertToQuery/@body.4/param"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter/type"/> | |
</argument> | |
</body> | |
<loopVariable name="param"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Parameter)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/parameters"/> | |
</iterSet> | |
<each xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</each> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=") : "/> | |
<body xsi:type="mtl:QueryInvocation" definition="/0/convertJavaTypeToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/return"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" = invoke('"/> | |
<body xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Service"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(Service)" referredOperation="/1/EObject_Class/ancestors.1"> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Service"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Service"/> | |
</argument> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/first"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//Resource/name"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="', '"/> | |
<body xsi:type="mtl:QueryInvocation"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<definition href="ServiceUtils.emtl#/0/signature"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="', Sequence{"/> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="arg"/> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Parameter)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/parameters"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="param" referredVariable="/0/convertToQuery/@body.12/param"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/indexOf"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/-"/> | |
</body> | |
<loopVariable name="param"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Parameter"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Parameter)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="method" referredVariable="/0/convertToQuery/method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method/parameters"/> | |
</iterSet> | |
<each xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</each> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="})/]"/> | |
<parameter name="method"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Method"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Query" name="getAdditionalArguments"> | |
<parameter name="script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</parameter> | |
<expression xsi:type="ocl.ecore:LetExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<in xsi:type="ocl.ecore:IterateExp" name="iterate"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="additionalArguments" eType="/3/OrderedSet(String)" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments"/> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="additionalArguments" eType="/3/OrderedSet(String)" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments"/> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="arg" referredVariable="/0/getAdditionalArguments/@expression/iterate/arg"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/="/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:VariableExp" name="res" referredVariable="/0/getAdditionalArguments/@expression/iterate/res"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</elseExpression> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="arg" referredVariable="/0/getAdditionalArguments/@expression/iterate/arg"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" : OclAny"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IfExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<condition xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="additionalArguments" eType="/3/OrderedSet(String)" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments"/> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/last"/> | |
</source> | |
<argument xsi:type="ocl.ecore:VariableExp" name="arg" referredVariable="/0/getAdditionalArguments/@expression/iterate/arg"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/%3C%3E"/> | |
</condition> | |
<thenExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=", "> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</thenExpression> | |
<elseExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</elseExpression> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="arg"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</iterator> | |
<result xsi:type="ocl.ecore:Variable" name="res"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<initExpression xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=""> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</initExpression> | |
</result> | |
</in> | |
<variable xsi:type="ocl.ecore:Variable" name="additionalArguments" eType="/3/OrderedSet(String)"> | |
<initExpression xsi:type="ocl.ecore:IteratorExp" name="sortedBy" eType="/3/OrderedSet(String)"> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/OrderedSet(String)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:IteratorExp" name="select" eType="/3/Sequence(Call)"> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(Call)" referredOperation="/1/EObject_Class/eAllContents"> | |
<source xsi:type="ocl.ecore:VariableExp" name="script" referredVariable="/0/getAdditionalArguments/script"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//core/Script"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Call"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</argument> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments/sortedBy/@source/collect/select/temp9"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/name"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="args"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/="/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp9"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp2" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments/sortedBy/@source/collect/temp10"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/name"/> | |
</source> | |
<argument xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Expression)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp2" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments/sortedBy/@source/collect/temp10"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call/arguments"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/first"/> | |
</argument> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String_Class/concat"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp10"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Call"/> | |
</iterator> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/asOrderedSet"/> | |
</source> | |
<body xsi:type="ocl.ecore:VariableExp" name="s" referredVariable="/0/getAdditionalArguments/@expression/additionalArguments/sortedBy/s.1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="s"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</iterator> | |
</initExpression> | |
</variable> | |
</expression> | |
<type xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="7719" endPosition="7994" value="
This is as placeholder for the compiler to be able to compile calls on "Statement", yet this
getting called means we're missing a specialized implementation of "convertStatement" for the
runtime class of the given statement.

statement : Statement that is to be converted.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatement" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="<<<FIXME : couldn't convert statement "/> | |
<body xsi:type="ocl.ecore:VariableExp" name="statement" referredVariable="/0/convertStatement/statement.1"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=".>>>"/> | |
<parameter name="statement"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Comment"> | |
<body startPosition="8140" endPosition="8420" value="
This is as placeholder for the compiler to be able to compile calls on "Statement", yet this
getting called means we're missing a specialized implementation of "convertStatementToOCL" for the
runtime class of the given statement.

statement : Statement that is to be converted.
"/> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatementToOCL" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="<<<FIXME : couldn't convert statement "/> | |
<body xsi:type="ocl.ecore:VariableExp" name="statement" referredVariable="/0/convertStatementToOCL/statement.1"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" to OCL.>>>"/> | |
<parameter name="statement"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatement" visibility="Public"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="comment "/> | |
<body xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="cmtStmt" referredVariable="/0/convertStatement.1/cmtStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Comment"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Comment/value"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/]"/> | |
<parameter name="cmtStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Comment"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatementToOCL" visibility="Public"> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement.1"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="cmtStmt" referredVariable="/0/convertStatementToOCL.1/cmtStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Comment"/> | |
</argument> | |
</body> | |
<parameter name="cmtStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Comment"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatement" visibility="Public"> | |
<init> | |
<variable name="isMultiLine"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(Boolean)"> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(Text)" referredOperation="/1/EObject_Class/eAllContents"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Text"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</argument> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/index"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatement.2/@init/@variable.0/@initExpression/collect/temp11"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text/value"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp11"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</iterator> | |
</source> | |
<argument xsi:type="ocl.ecore:BooleanLiteralExp" booleanSymbol="true"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/includes"/> | |
</initExpression> | |
</variable> | |
</init> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="if "/> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/condition"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="]"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatement.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/thenStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatement.2/collect/temp12"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp12"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="elseif "/> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="elseIf" referredVariable="/0/convertStatement.2/@body.6/elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/condition"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="]"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatement.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="elseIf" referredVariable="/0/convertStatement.2/@body.6/elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/thenStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatement.2/@body.6/collect/temp13"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp13"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<loopVariable name="elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(If)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseIf"/> | |
</iterSet> | |
</body> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="else]"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatement.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatement.2/@body.7/collect/temp14"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp14"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatement.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseStatements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="["> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="/if]"/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatement.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<parameter name="ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</parameter> | |
</ownedModuleElement> | |
<ownedModuleElement xsi:type="mtl:Template" name="convertStatementToOCL" visibility="Public"> | |
<init> | |
<variable name="isMultiLine"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<initExpression xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(Boolean)"> | |
<source xsi:type="ocl.ecore:OperationCallExp" eType="/3/Sequence(Text)" referredOperation="/1/EObject_Class/eAllContents"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<argument xsi:type="ocl.ecore:TypeExp" eType="/10/Text"> | |
<referredType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</argument> | |
</source> | |
<body xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp" referredOperation="/1/String_Class/index"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatementToOCL.2/@init/@variable.0/@initExpression/collect/temp15"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</source> | |
<referredProperty xsi:type="ecore:EAttribute" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text/value"/> | |
</source> | |
<argument xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</argument> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp15"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Text"/> | |
</iterator> | |
</source> | |
<argument xsi:type="ocl.ecore:BooleanLiteralExp" booleanSymbol="true"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Sequence(T)_Class/includes"/> | |
</initExpression> | |
</variable> | |
</init> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="if "/> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/condition"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" then "/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatementToOCL.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/thenStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatementToOCL.2/collect/temp16"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp16"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<body xsi:type="mtl:ForBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" else if "/> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertExpressionToOCL"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:PropertyCallExp"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//expressions/Expression"/> | |
<source xsi:type="ocl.ecore:VariableExp" name="elseIf" referredVariable="/0/convertStatementToOCL.2/@body.5/elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/condition"/> | |
</argument> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" then "/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatementToOCL.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="elseIf" referredVariable="/0/convertStatementToOCL.2/@body.5/elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/thenStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatementToOCL.2/@body.5/collect/temp17"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp17"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<loopVariable name="elseIf"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</loopVariable> | |
<iterSet xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(If)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseIf"/> | |
</iterSet> | |
</body> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" else "/> | |
<body xsi:type="mtl:IfBlock"> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol="
"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:VariableExp" name="isMultiLine" referredVariable="/0/convertStatementToOCL.2/@init/@variable.0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:IteratorExp" name="collect" eType="/3/Sequence(String)"> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseStatements"/> | |
</source> | |
<body xsi:type="mtl:TemplateInvocation" definition="/0/convertStatement"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/String"/> | |
<argument xsi:type="ocl.ecore:VariableExp" name="temp1" referredVariable="/0/convertStatementToOCL.2/@body.6/collect/temp18"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</argument> | |
</body> | |
<iterator xsi:type="ocl.ecore:Variable" name="temp18"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/Statement"/> | |
</iterator> | |
</body> | |
<ifExpr xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Boolean"/> | |
<source xsi:type="ocl.ecore:OperationCallExp"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
<source xsi:type="ocl.ecore:PropertyCallExp" eType="/3/OrderedSet(Statement)"> | |
<source xsi:type="ocl.ecore:VariableExp" name="ifStmt" referredVariable="/0/convertStatementToOCL.2/ifStmt"> | |
<eType xsi:type="ecore:EClass" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If"/> | |
</source> | |
<referredProperty xsi:type="ecore:EReference" href="http://www.eclipse.org/acceleo/mt/2.6.0#//statements/If/elseStatements"/> | |
</source> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/OrderedSet(T)_Class/size"/> | |
</source> | |
<argument xsi:type="ocl.ecore:IntegerLiteralExp" integerSymbol="0"> | |
<eType xsi:type="ocl.ecore:PrimitiveType" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer"/> | |
</argument> | |
<referredOperation xsi:type="ecore:EOperation" href="http://www.eclipse.org/ocl/1.1.0/oclstdlib.ecore#/0/Integer_Class/%3E"/> | |
</ifExpr> | |
</body> | |
<body xsi:type="ocl.ecore:StringLiteralExp" stringSymbol=" endif"/> | |
<body xsi:type="mtl:IfBlock"> | |