java.module.annotation
Annotation Type CompilationVersion


@Retention(value=RUNTIME)
public @interface CompilationVersion

Indicates the version of a module definition that was used for compilation. This metadata annotation is applied to the import of the development module, i.e. the superpackage construct.

The version format must follow the one described in the Version class. This metadata annotation is intended to be used by the compiler, and should NOT be used directly in the source file.

For examples,

    superpackage com.wombat.xyz {
       // 
       // The imported module used for compilation was version 1.2.3.
       //
       @CompilationVersion("1.2.3")
       @VersionConstraint("[1.0, 2.0)")
       import org.opensource.library;
       ...
    }
 

Since:
1.7.0
Author:
Stanley M. Ho
See Also:
Version

Required Element Summary
 String value
          Version of the module definition used for compilation.
 

Element Detail

value

public abstract String value
Version of the module definition used for compilation.