• DoctypeDeclaration{http://etl.sf.net/etl/doctype/0.2.1}:
    • systemId: "../grammars/EJ.g.etl"
    • context: "MethodContent"
  • SwitchStatement{http://etl.sf.net/2006/samples/ej/0.1}:
    • value:
      • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
        • value: test
    • parts:
      • SwitchCasePart{http://etl.sf.net/2006/samples/ej/0.1}:
        • values:
          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
            • accessed:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: A
            • feature:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: a
          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
            • accessed:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: A
            • feature:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: b
        • body:
          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
            • content:
              • ContinueStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • label:
                  • Label{http://etl.sf.net/2006/samples/ej/0.1}:
                    • name: default
      • SwitchCasePart{http://etl.sf.net/2006/samples/ej/0.1}:
        • values:
          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
            • accessed:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: A
            • feature:
              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                • value: c
        • body:
          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
            • content:
              • ContinueStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • caseValue:
                  • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                    • accessed:
                      • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                        • value: A
                    • feature:
                      • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                        • value: a
      • SwitchDefaultPart{http://etl.sf.net/2006/samples/ej/0.1}:
        • body:
          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
            • content:
              • IfStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • ifThenPart:
                  • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
                    • condition:
                      • EqualOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • value1:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: test
                        • value2:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: A
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: a
                    • body:
                      • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                        • content:
                          • BreakStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                  • expression:
                    • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                      • functor:
                        • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                          • accessed:
                            • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                              • accessed:
                                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                  • value: System
                              • feature:
                                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                  • value: out
                          • feature:
                            • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                              • value: println
                      • args:
                        • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                          • value: test
    • SwitchStatement{http://etl.sf.net/2006/samples/ej/0.1}:
      • label:
        • Label{http://etl.sf.net/2006/samples/ej/0.1}:
          • name: mySwitch
      • value:
        • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
          • value: test
      • parts:
        • SwitchCasePart{http://etl.sf.net/2006/samples/ej/0.1}:
          • values:
            • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
              • accessed:
                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                  • value: A
              • feature:
                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                  • value: a
            • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
              • accessed:
                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                  • value: A
              • feature:
                • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                  • value: b
          • body:
            • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
              • content:
                • ContinueStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                  • label:
                    • Label{http://etl.sf.net/2006/samples/ej/0.1}:
                      • name: mySwitch
                  • defaultLabel:
                    • SwitchDefaultPartRef{http://etl.sf.net/2006/samples/ej/0.1}:
          • SwitchCasePart{http://etl.sf.net/2006/samples/ej/0.1}:
            • values:
              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                • accessed:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: A
                • feature:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: c
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • ContinueStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • label:
                      • Label{http://etl.sf.net/2006/samples/ej/0.1}:
                        • name: mySwitch
                    • caseValue:
                      • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • accessed:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: A
                        • feature:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: a
          • SwitchDefaultPart{http://etl.sf.net/2006/samples/ej/0.1}:
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • IfStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • ifThenPart:
                      • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
                        • condition:
                          • EqualOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value1:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: test
                            • value2:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: A
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: a
                        • body:
                          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                            • content:
                              • BreakStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                                • label:
                                  • Label{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • name: mySwitch
                  • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • expression:
                      • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • functor:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: System
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: out
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: println
                        • args:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: test
      • IfStatement{http://etl.sf.net/2006/samples/ej/0.1}:
        • ifThenPart:
          • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
            • condition:
              • LessThenOp{http://etl.sf.net/2006/samples/ej/0.1}:
                • value1:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: a
                • value2:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: b
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • expression:
                      • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • functor:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: System
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: out
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: println
                        • args:
                          • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: "a won"
      • IfStatement{http://etl.sf.net/2006/samples/ej/0.1}:
        • ifThenPart:
          • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
            • condition:
              • LessThenOp{http://etl.sf.net/2006/samples/ej/0.1}:
                • value1:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: a
                • value2:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: b
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • expression:
                      • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • functor:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: System
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: out
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: println
                        • args:
                          • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: "a won"
        • elsePart:
          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
            • content:
              • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • expression:
                  • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                    • functor:
                      • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • accessed:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: System
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: out
                        • feature:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: println
                    • args:
                      • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                        • value: "b possibly won"
      • IfStatement{http://etl.sf.net/2006/samples/ej/0.1}:
        • ifThenPart:
          • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
            • condition:
              • LessThenOp{http://etl.sf.net/2006/samples/ej/0.1}:
                • value1:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: a
                • value2:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: b
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • expression:
                      • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • functor:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: System
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: out
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: println
                        • args:
                          • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: "a won"
          • IfThenPart{http://etl.sf.net/2006/samples/ej/0.1}:
            • condition:
              • LessThenOp{http://etl.sf.net/2006/samples/ej/0.1}:
                • value1:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: b
                • value2:
                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                    • value: a
            • body:
              • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
                • content:
                  • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                    • expression:
                      • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • functor:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                                • accessed:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: System
                                • feature:
                                  • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                    • value: out
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: println
                        • args:
                          • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: "b won"
        • elsePart:
          • MethodBlock{http://etl.sf.net/2006/samples/ej/0.1}:
            • content:
              • ExpressionStatement{http://etl.sf.net/2006/samples/ej/0.1}:
                • expression:
                  • ApplyRoundOp{http://etl.sf.net/2006/samples/ej/0.1}:
                    • functor:
                      • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                        • accessed:
                          • AccessOp{http://etl.sf.net/2006/samples/ej/0.1}:
                            • accessed:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: System
                            • feature:
                              • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                                • value: out
                        • feature:
                          • Identifier{http://etl.sf.net/2006/samples/ej/0.1}:
                            • value: println
                    • args:
                      • StringLiteral{http://etl.sf.net/2006/samples/ej/0.1}:
                        • value: "draw"
           1: doctype "../grammars/EJ.g.etl" context "MethodContent";
           2: // switch
           3: switch(test)
           4: {
           5:   case A.a, A.b
           6:   {
           7:     continue default;
           8:   };
           9:   case A.c
          10:   {
          11:     continue case A.a;
          12:   };
          13:   default
          14:   {
          15:     if(test == A.a)
          16:     {
          17:       break;
          18:     };
          19:     System.out.println(test);
          20:   };
          21: };
          22: switch mySwitch (test)
          23: {
          24:   case A.a, A.b
          25:   {
          26:     continue mySwitch case default;
          27:   };
          28:   case A.c
          29:   {
          30:     continue mySwitch case A.a;
          31:   };
          32:   default
          33:   {
          34:     if(test == A.a)
          35:     {
          36:       break mySwitch;
          37:     };
          38:     System.out.println(test);
          39:   };
          40: };
          41: // if statement
          42: if(a < b)
          43: {
          44:   System.out.println("a won");
          45: };
          46: 
          47: if(a < b)
          48: {
          49:   System.out.println("a won");
          50: }
          51: else
          52: {
          53:   System.out.println("b possibly won");
          54: };
          55: if(a < b)
          56: {
          57:   System.out.println("a won");
          58: }
          59: elseif(b < a)
          60: {
          61:   System.out.println("b won");
          62: }
          63: else
          64: {
          65:   System.out.println("draw");
          66: };
          67: