avoid-enum-as-identifier.xmi 3.12 KB
Newer Older
E19C506H's avatar
E19C506H committed
1
<?xml version="1.0" encoding="ASCII"?>
2
<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="EnumAsIdentifier">
E19C506H's avatar
E19C506H committed
3
4
5
6
7
  <ownedElements name="(default package)">
    <ownedElements xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.0" name="A">
      <modifier visibility="public"/>
      <bodyDeclarations xsi:type="java:ClassDeclaration" originalCompilationUnit="//@compilationUnits.0" name="Foo">
        <modifier visibility="public"/>
8
9
10
11
12
13
        <bodyDeclarations xsi:type="java:FieldDeclaration" originalCompilationUnit="//@compilationUnits.0">
          <modifier/>
          <type type="//@ownedElements.1/@ownedPackages.0/@ownedElements.0"/>
          <fragments originalCompilationUnit="//@compilationUnits.0" name="enum">
            <initializer xsi:type="java:StringLiteral" originalCompilationUnit="//@compilationUnits.0" escapedValue="&quot;foo&quot;"/>
          </fragments>
E19C506H's avatar
E19C506H committed
14
15
16
17
        </bodyDeclarations>
      </bodyDeclarations>
    </ownedElements>
  </ownedElements>
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  <ownedElements name="java" proxy="true">
    <ownedPackages name="lang" proxy="true">
      <ownedElements xsi:type="java:ClassDeclaration" name="String" proxy="true" usagesInTypeAccess="//@ownedElements.0/@ownedElements.0/@bodyDeclarations.0/@bodyDeclarations.0/@type">
        <superInterfaces type="//@ownedElements.1/@ownedPackages.1/@ownedElements.0"/>
        <superInterfaces type="//@ownedElements.1/@ownedPackages.0/@ownedElements.1"/>
        <superInterfaces type="//@ownedElements.1/@ownedPackages.0/@ownedElements.2"/>
      </ownedElements>
      <ownedElements xsi:type="java:InterfaceDeclaration" name="Comparable" proxy="true" usagesInTypeAccess="//@ownedElements.1/@ownedPackages.0/@ownedElements.0/@superInterfaces.1">
        <typeParameters name="T" proxy="true"/>
      </ownedElements>
      <ownedElements xsi:type="java:InterfaceDeclaration" name="CharSequence" proxy="true" usagesInTypeAccess="//@ownedElements.1/@ownedPackages.0/@ownedElements.0/@superInterfaces.2"/>
    </ownedPackages>
    <ownedPackages name="io" proxy="true">
      <ownedElements xsi:type="java:InterfaceDeclaration" name="Serializable" proxy="true" usagesInTypeAccess="//@ownedElements.1/@ownedPackages.0/@ownedElements.0/@superInterfaces.0"/>
    </ownedPackages>
  </ownedElements>
E19C506H's avatar
E19C506H committed
34
35
36
37
38
39
40
41
42
  <orphanTypes xsi:type="java:PrimitiveTypeInt" name="int"/>
  <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"/>
43
  <compilationUnits name="A.java" originalFilePath="G:\Gitlab\m2-mde-projet\src\main\java\EnumAvoidAsIdentifier\src\A.java" types="//@ownedElements.0/@ownedElements.0"/>
E19C506H's avatar
E19C506H committed
44
</java:Model>