final-field-could-be-static.xmi 4.69 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="ASCII"?>
<java:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://www.eclipse.org/MoDisco/Java/0.2.incubation/java" name="ExempleMDE">
  <ownedElements name="fr">
    <ownedPackages name="unantes">
      <ownedPackages name="FinalFieldCouldBeStatic">
        <ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.0" name="FinalField">
          <modifier visibility="public"/>
          <bodyDeclarations xsi:type="java:FieldDeclaration" originalCompilationUnit="//@compilationUnits.0">
            <modifier visibility="public" inheritance="final"/>
            <type type="//@orphanTypes.0"/>
            <fragments originalCompilationUnit="//@compilationUnits.0" name="foo">
              <initializer xsi:type="java:NumberLiteral" originalCompilationUnit="//@compilationUnits.0" tokenValue="42"/>
            </fragments>
          </bodyDeclarations>
        </ownedElements>
        <ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.1" name="NoFinalField">
          <modifier visibility="public"/>
          <bodyDeclarations xsi:type="java:FieldDeclaration" originalCompilationUnit="//@compilationUnits.1">
            <modifier visibility="public"/>
            <type type="//@orphanTypes.0"/>
            <fragments originalCompilationUnit="//@compilationUnits.1" name="foo">
              <initializer xsi:type="java:NumberLiteral" originalCompilationUnit="//@compilationUnits.1" tokenValue="42"/>
            </fragments>
          </bodyDeclarations>
        </ownedElements>
        <ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.2" name="NoField">
          <modifier visibility="public"/>
        </ownedElements>
        <ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.3" name="FinalFieldAndStatic">
          <modifier visibility="public"/>
          <bodyDeclarations xsi:type="java:FieldDeclaration" originalCompilationUnit="//@compilationUnits.3">
            <modifier visibility="public" inheritance="final" static="true"/>
            <type type="//@orphanTypes.0"/>
            <fragments originalCompilationUnit="//@compilationUnits.3" name="foo">
              <initializer xsi:type="java:NumberLiteral" originalCompilationUnit="//@compilationUnits.3" tokenValue="42"/>
            </fragments>
          </bodyDeclarations>
        </ownedElements>
      </ownedPackages>
    </ownedPackages>
  </ownedElements>
  <orphanTypes xsi:type="java:PrimitiveTypeInt" name="int" usagesInTypeAccess="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.0/@bodyDeclarations.0/@type //@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.1/@bodyDeclarations.0/@type //@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.3/@bodyDeclarations.0/@type"/>
  <orphanTypes xsi:type="java:PrimitiveTypeLong" name="long"/>
  <orphanTypes xsi:type="java:PrimitiveTypeFloat" name="float"/>
  <orphanTypes xsi:type="java:PrimitiveTypeDouble" name="double"/>
  <orphanTypes xsi:type="java:PrimitiveTypeBoolean" name="boolean"/>
  <orphanTypes xsi:type="java:PrimitiveTypeVoid" name="void"/>
  <orphanTypes xsi:type="java:PrimitiveTypeChar" name="char"/>
  <orphanTypes xsi:type="java:PrimitiveTypeShort" name="short"/>
  <orphanTypes xsi:type="java:PrimitiveTypeByte" name="byte"/>
  <compilationUnits name="FinalField.java" originalFilePath="/comptes/E135794C/workspaces/Modeling-photon/ExempleMDE/src/fr/unantes/FinalFieldCouldBeStatic/FinalField.java" package="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0" types="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.0"/>
  <compilationUnits name="NoFinalField.java" originalFilePath="/comptes/E135794C/workspaces/Modeling-photon/ExempleMDE/src/fr/unantes/FinalFieldCouldBeStatic/NoFinalField.java" package="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0" types="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.1"/>
  <compilationUnits name="NoField.java" originalFilePath="/comptes/E135794C/workspaces/Modeling-photon/ExempleMDE/src/fr/unantes/FinalFieldCouldBeStatic/NoField.java" package="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0" types="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.2"/>
  <compilationUnits name="FinalFieldAndStatic.java" originalFilePath="/comptes/E135794C/workspaces/Modeling-photon/ExempleMDE/src/fr/unantes/FinalFieldCouldBeStatic/FinalFieldAndStatic.java" package="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0" types="//@ownedElements.0/@ownedPackages.0/@ownedPackages.0/@ownedElements.3"/>
</java:Model>