/*
 * Copyright (C) 2016 Christian Stein
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

package de.sormuras.beethoven;

public interface Beethoven {

  String VERSION = "1.0-SNAPSHOT";

  static void main(String[] args) {
    System.out.print(Beethoven.class.getPackage().getName() + " " + VERSION);
  }
}

@@ -619,16 +619,59 @@
 hoven;%0A%0A
+import java.lang.module.ModuleDescriptor;%0A%0A
 public i
@@ -788,63 +788,483 @@
 rint
-(Beethoven.class.getPackage().getName() + %22 %22 + VERSION
+ln(%22# Base package name and version constant%22);%0A    System.out.println(Beethoven.class.getPackage().getName() + %22 %22 + VERSION);%0A    System.out.println(%22# Module description%22);%0A    ModuleDescriptor descriptor = Beethoven.class.getModule().getDescriptor();%0A    System.out.format(%22Name and version: %25s%25n%22, descriptor.toNameAndVersion());%0A    System.out.format(%22Requires modules: %25s%25n%22, descriptor.requires());%0A    System.out.format(%22Exports packages: %25s%25n%22, descriptor.exports()
 );%0A 

Print module description.