    1   package groovy;
    2
    3   /***
    4    * <p>Sample class used for testing that groovy can call inner classes contructors.</p>
    5    *
    6    * @author Guillaume Laforge
    7    *
    8    * @cvs.revision $Revision: 1.3 $
    9    */
    10  public class OuterUser
    11  {
    12      private String name;
    13      private Integer age;
    14
    15      public String getName() {
    16          return name;
    17      }
    18
    19      public void setName(String name) {
    20          this.name = name;
    21      }
    22
    23      public Integer getAge() {
    24          return age;
    25      }
    26
    27      public void setAge(Integer age) {
    28          this.age = age;
    29      }
    30
    31      public static class InnerAddress
    32      {
    33          private String city;
    34          private Integer zipcode;
    35
    36          public String getCity() {
    37              return city;
    38          }
    39
    40          public void setCity(String city) {
    41              this.city = city;
    42          }
    43
    44          public Integer getZipcode() {
    45              return zipcode;
    46          }
    47
    48          public void setZipcode(Integer zipcode) {
    49              this.zipcode = zipcode;
    50          }
    51
    52          public static class Street
    53          {
    54              private String name;
    55              private int number;
    56
    57              public String getName() {
    58                  return name;
    59              }
    60
    61              public void setName(String name) {
    62                  this.name = name;
    63              }
    64
    65              public int getNumber() {
    66                  return number;
    67              }
    68
    69              public void setNumber(int number) {
    70                  this.number = number;
    71              }
    72          }
    73      }
    74  }